Re: [Tutor] iterating through large dictionary

2005-03-22 Thread Sean Perry
D:\Python24>ad-attr.py Traceback (most recent call last): File "D:\Python24\ad-attr.py", line 32, in ? for k, v in ad_dict(user): ValueError: too many values to unpack Try this instead ... I think it should help: for k,v in ad_dict(user).items(): in 2.3 and newer, the preferred function is '

Re: [Tutor] iterating through large dictionary

2005-03-22 Thread jeff
On Tue, 22 Mar 2005 15:47:19 -0600, Christian Wyglendowski <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of jeff > > > > Hi, > > Hey Jeff, > > > I'm trying to print out all the attributes of a user account in active >

RE: [Tutor] iterating through large dictionary

2005-03-22 Thread Christian Wyglendowski
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of jeff > > Hi, Hey Jeff, > I'm trying to print out all the attributes of a user account in active > directory. I got a script from: > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303348 > /

[Tutor] iterating through large dictionary

2005-03-22 Thread jeff
Hi, I'm trying to print out all the attributes of a user account in active directory. I got a script from: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303348/index_txt Now I'd like it to print pretty. What I have now is: import win32com,win32com.client def ad_dict(ldap_path,value_r