[Zope] Create subfolder at product creation

Florent Guillaume fg@nuxeo.com
Sat, 6 Jul 2002 08:04:18 +0000 (UTC)


Wolfgang Strobl <ws@mystrobl.de> wrote:
> On 5 Jul 2002, at 22:53, Dieter Maurer wrote:
> 
> > Wolfgang Strobl writes:
> >  > ...
> >  > What is the purpose of myInstance._setId(id)?
> > "_setId" is very well named.
>  
> > This well chosen name makes questions as the above superfluous ;-)
> 
> I would have called it _set__name__, setName or something, but not setId. 

You're looking at the wrong one. Look in CopySupport.CopySource, which
SimpleItem.SimpleItem inherits from (through Item):

    def _setId(self, id):
        # Called to set the new id of a copied object.
        self.id=id

> > Each Zope site object needs an id!
> 
> But _setId doesn't set an id!

Yes it does.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com