On June 11, Stefan H. Holek wrote:
> This is definitely possible. You probably have a faulty factory method. In 
> Zope, construction is a two step process that looks something like
>  def addSomething(self, id, title=''):
>      ob = Something(id, title)
>      self._setObject(id, ob)

That's why this should be:

    def addSomething(self, id):
        ob = Something(id)
        self._setObject(ob.getId(), ob)

But I notice nobody seems to do this.


 Adrian van den Dries                           [EMAIL PROTECTED]
 Development team                               www.dev.flow.com.au
 FLOW Communications Pty. Ltd.                  www.flow.com.au

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

Reply via email to