[Zope-dev] getItem() changed in 2.3.2?

Bill Anderson anderson@hp.com
14 Jun 2001 16:06:11 -0600


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.