[Zope] set id
Mark McEahern
mark@mceahern.com
Tue, 7 Jan 2003 16:13:43 -0600
I have a CMF portal type Product. It looks like I must explicitly set the
id like so during __init__(); e.g.,
class MyPortalType(PortalContent, DefaultDublinCoreImpl):
...
def __init__(self, id, ...):
self.id = id
...
_setObject(), typically invoked in the factory method, doesn't seem to set
the object's id. Also, SimpleItem suggests the use of getId() to access the
id, that direct access to id is deprecated.
Is this so?
Thanks,
// mark
-