[Zope] Zoo guestbook example.
Dieter Maurer
dieter@handshake.de
Tue, 13 Feb 2001 20:57:16 +0100 (CET)
Ignacio Valdes writes:
> Error Type: AttributeError
> Error Value: 'string' object has no attribute 'objectIds'
> (Info: (('Anonymous', 'test'), {}, None))
> File <string>, line 2, in addEntry
> AttributeError: (see above)
>
> With this code, with guest_name and self as parameters.
>
> id='entry_%d' % len(self.objectIds())
> self.manage_addDTMLDocument(id, title="", file=comments)
> doc=getattr(self, id)
> doc.manage_addProperty('guest_name', guest_name, 'string')
Apparently, your "self" is a string
while you expect it to be an object.
Dieter