21 Oct
1999
21 Oct
'99
1:47 p.m.
-----Original Message----- From: Victor.Zhai@ogilvy.com [mailto:Victor.Zhai@ogilvy.com] Sent: Thursday, October 21, 1999 4:32 AM To: jason@zope.org Cc: zope-dev@zope.org Subject: [Zope-dev] A simple problem.
I use self.objectIds like this,and want to check the name and password to fit the person object that have been already added in. The error is: Error Type: AttributeError Error Value: firstname
You're pretty close. objectIds only returns a list of ids, *not the object's themselves*. To get a list of actual objects, just objectValues. To get a list of (id, object) tuples, use objectItems. -Michel