Re: [Tutor] Putting a variable into a statement

2009-10-16 Thread Dave Angel
bob gailer wrote: GoodPotatoes wrote: : for x in myuser.properties:# "myuser.properties" returns a tuple of properties associated with the myuser AD object print myuser.x Traceback (most recent call last): File "", line 2, in print myuser.x File "build\bdist.win32\egg\active_

Re: [Tutor] Putting a variable into a statement

2009-10-15 Thread bob gailer
GoodPotatoes wrote: I am using the module active_directory and have an ad object called myuser. I would like to run a series of statements like: myuser.attribute where attribute is a string variable, but python says that this is not the correct syntax. error: for x in myuser.properties:

Re: [Tutor] Putting a variable into a statement

2009-10-15 Thread bob gailer
GoodPotatoes wrote: I am using the module active_directory and have an ad object called myuser. I would like to run a series of statements like: myuser.attribute where attribute is a string variable, but python says that this is not the correct syntax. error: for x in myuser.properties:

[Tutor] Putting a variable into a statement

2009-10-15 Thread GoodPotatoes
I am using the module active_directory and have an ad object called myuser. I would like to run a series of statements like: myuser.attribute where attribute is a string variable, but python says that this is not the correct syntax. error: for x in myuser.properties:# "myuser.properties" r