Philipp von Weitershausen schrieb:
KLEIN St├ęphane wrote:
are you one example to add a content component in root ZODB folder in
interactive command because I don't understand how it work.

$ bin/debugzope
 >>> from worldcookery.recipe import Recipe
 >>> root['chicken'] = Recipe()
 >>> import transaction
 >>> transaction.commit()

/pathto/zopeinstance/bin/zopectl debug

>import transaction
>from zope.event import notify
>from zope.lifecycleevent import ObjectCreatedEvent
>from import hooks
>from import MyContent
>home = hooks.getSite()
>mycontent = home['objectid'] = MyContent()
>mycontent.attribute1 = u'ContentAttribute'

Zope3-users mailing list

Reply via email to