OK, the code below worked fine in 2.3.1 ..
=======
user_ids=context.getUserNames()
users=[]
for i in user_ids:
  activity=context.UserSource.getItem(i).Active
  if activity==1:
    state='Active'
  else:
    state='Inactive'
users.append([context.getItem(i).id,state,context.getItem(i).getFullName()])
return users
=======

But now, in 2.3.2, it returns an AttributeError for __call__. I've been
able to determine that  context,UserSource.getItem(i) is returning i for
some reason.

IOW, if i is a username, call to getItem returns the username.

now, of course, trying to get attributes from string is futile, but why
is it now returning a string, as opposed to the object? Did I miss
something?


Bill

--
Bill Anderson               Linux Specialist
Modular Network Storage     R&D           
Random Redmond Quote:
    Portable: survives system reboot.


_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to