13 Feb
2001
13 Feb
'01
7:57 p.m.
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