Michael Bernstein wrote:
> Does anyone on the list know how to change the getUserNames
> Python method to return a list of names instead of a list of
> objects?
> The code in question is this:
>   user_ids=self.UserSource.getPersistentItemIDs()
>   names=[]
>   for i in user_ids:
>       names.append(self.getItem(i))
>   return names

Ok, I solved this little problem (and of course it looks
obvious once I've done it):

   for i in user_ids:
   return names

Michael Bernstein.

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

Reply via email to