Go Back   CodingForums.com > :: Server side development > Other server side languages/ issues > Python

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-16-2009, 04:19 PM   PM User | #1
obarreto
New to the CF scene

 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
obarreto is an unknown quantity at this point
Ldap - python

I started in python and I need to solve a problem involving ldap.

In the Statement

query = link.search_s(Base_DN,ldap.SCOPE_SUBTREE,filtro_all);

if(not query):
return false;

return true;

The if is never....

because it contains a list ..
as can be found whether or not what I'm looking for

Last edited by obarreto; 06-16-2009 at 04:24 PM..
obarreto is offline   Reply With Quote
Old 06-22-2009, 07:06 PM   PM User | #2
obarreto
New to the CF scene

 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
obarreto is an unknown quantity at this point
query is list of list....


when it is not an element which satisfies the conditions of the filter then return False,.

if (query[0][0]= None):
return False;
else
return True;
obarreto is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:16 PM.


Advertisement
Log in to turn off these ads.