Re: Help - Classes and attributes

2005-07-14 Thread Bruno Desthuilliers
rh0dium a écrit : > Hi > > I really like your approach but when do you actually get connected?? > You never call the method connect? oops :( (snip whole code) >>if __name__ == '__main__': >> truc = NSCLdap() truc.connect() # was missing >> truc.search() > BTW, you'd better let

Re: Help - Classes and attributes

2005-07-14 Thread rh0dium
Hi I really like your approach but when do you actually get connected?? You never call the method connect? > > class NSCLdap(object): > def __init__(self, > server="sc-ldap.nsc.com", > baseDN="o=nsc.com", > who=None, >

Re: Help - Classes and attributes

2005-07-14 Thread rh0dium
Thanks Bruno!! Very much appreciated the modifications!! Bruno Desthuilliers wrote: > rh0dium a écrit : > > Hi all, > > > > I believe I am having a fundamental problem with my class and I can't > > seem to figure out what I am doing wrong. Basically I want a class > > which can do several speci

Re: Help - Classes and attributes

2005-07-14 Thread rh0dium
I knew it had to be something obvious - thanks so much!! John Machin wrote: > rh0dium wrote: > > Hi all, > > > > I believe I am having a fundamental problem with my class and I can't > > seem to figure out what I am doing wrong. Basically I want a class > > which can do several specific ldap que

Re: Help - Classes and attributes

2005-07-14 Thread Bruno Desthuilliers
rh0dium a écrit : > Hi all, > > I believe I am having a fundamental problem with my class and I can't > seem to figure out what I am doing wrong. Basically I want a class > which can do several specific ldap queries. So in my code I would have > multiple searches. But I can't figure out how to

Re: Help - Classes and attributes

2005-07-13 Thread Christopher Subich
rh0dium wrote: > Hi all, > > I believe I am having a fundamental problem with my class and I can't > seem to figure out what I am doing wrong. Basically I want a class > which can do several specific ldap queries. So in my code I would have > multiple searches. But I can't figure out how to do

Re: Help - Classes and attributes

2005-07-13 Thread John Machin
rh0dium wrote: > Hi all, > > I believe I am having a fundamental problem with my class and I can't > seem to figure out what I am doing wrong. Basically I want a class > which can do several specific ldap queries. So in my code I would have > multiple searches. But I can't figure out how to do

Help - Classes and attributes

2005-07-13 Thread rh0dium
Hi all, I believe I am having a fundamental problem with my class and I can't seem to figure out what I am doing wrong. Basically I want a class which can do several specific ldap queries. So in my code I would have multiple searches. But I can't figure out how to do it without it barfing.. Th