[Zope] object creation in a specific folder...
David H
bluepaul at earthlink.net
Mon Apr 11 01:16:42 EDT 2005
Rushabh Mehta wrote:
>hello all,
>
>this is my first zope app... i am trying to figure out how to create
>an object in a particular folder via script, when my current object
>may not be in the right tree...
>
>I tried to do a 'change folder' via restrictedTraverse (eg
>context.getRestrictedTraverse('/myapp/myfolder'), and then create the
>object using manage_addProduct... but it dosnt seem to work. any tips?
>
>thanks,
>_______________________________________________
>Zope maillist - Zope at zope.org
>http://mail.zope.org/mailman/listinfo/zope
>** No cross posts or HTML encoding! **
>(Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
>
Rushabh,
Give the source that failed dont just describe it. Or, maybe first
google "zope manage_addProduct" ... I found lots of examples. See if
what you tried differs from the examples you find.
David
More information about the Zope
mailing list