[Zope-dev] manage_clone? (amongst others!)

Chris Withers chrisw@nipltd.com
Tue, 11 Jul 2000 14:28:18 +0100


Shane Hathaway wrote:
> Chris Withers wrote:
> > I'm still not clear on this. Why would I need access to the product
> > factory when where.manage_addFolder(id,title) works just fine?
> > I thought manage_addFolder was the product factoy method?
> 
> manage_addFolder() is to be considered a shortcut, actually.  The full
> equivalent would be manage_addProduct['OFSP'].manage_addFolder().  If
> you look at Products/OFSP/__init__.py, you'll see there's the class
> registration for the "Folder" type.  In the registration call you'll
> see it uses the argument name "legacy", which suggests that the
> manage_addFolder shortcut may be deprecated.

Okay, that makes sense :-)

cheers,

Chris