[Zope] creating an instance of your own product within Python Scripts
Michal Bencur
zope@benko.sk
Thu, 9 May 2002 07:40:04 +0200
Hi Tom,
try changing ['OFSP'] to ['YourProductPackage']
context.documents.manage_addProduct['YourProductPackage'].manage_addCasusDocument(id='new_id2')
Michal
On Wed, May 08, 2002 at 06:43:24PM +0200, Tom Deprez wrote:
> Hi,
>
> What do I've to accomplish to call
>
> context.documents.manage_addProduct['OFSP'].manage_addFolder(id='new_id2')
>
> with my own product? eg:
>
> context.documents.manage_addProduct['OFSP'].manage_addCasusDocument(id='new_
> id2')
>
> I've already made it possible to import manage_addCasusDocument through
> python scripts.
> However now I'm stuck and don't know how I can create an instance of my
> product inside a BTree folder
>
> Thanks in advance,
> Tom.
>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )