[Zope3-dev] createObject() and dc metadata
Craig Ewington
ewington at adelphia.net
Sun Oct 10 11:56:00 EDT 2004
I have a need to pre-populate a site programmatically. When I use
the following construct, the created folder is not annotated with
dublin core metadata. Do I need to perform that annotation manually
(is there some sample code?), or am I using the wrong approach to
creating content types programatically?
from zope.app.traversing.api import getRoot
from zope.component import createObject
...
root = getRoot(self.context)
root['SampleFolder'] = createObject(self.context,
'zope.app.content.Folder')
...
- Craig Ewington
More information about the Zope3-dev
mailing list