[Product-Developers] Python content type creation
Andreas Jung
lists at zopyx.com
Sat Jul 11 13:43:53 UTC 2009
On 11.07.09 15:10, Françoise Conil wrote:
> Traceback (innermost last):
> Module ZPublisher.Publish, line 119, in publish
> Module ZPublisher.mapply, line 88, in mapply
> Module ZPublisher.Publish, line 42, in call_object
> Module Shared.DC.Scripts.Bindings, line 313, in __call__
> Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
> Module Products.PythonScripts.PythonScript, line 328, in _exec
> Module None, line 49, in testcreateArbo
> - <CustomizedPythonScript at /liris/SITE/essai/testcreateArbo>
> - Line 49
> Module Shared.DC.Scripts.Bindings, line 313, in __call__
> Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
> Module Products.PythonScripts.PythonScript, line 328, in _exec
> Module None, line 26, in createImportedEvtForHelp
> - <CustomizedPythonScript at
> /liris/SITE/essai/createImportedEvtForHelp>
> - Line 26
> Module Products.ATContentTypes.lib.constraintypes, line 281, in
> invokeFactory
> Module Products.CMFCore.PortalFolder, line 315, in invokeFactory
> Module Products.CMFCore.TypesTool, line 716, in constructContent
> Module Products.CMFCore.TypesTool, line 276, in constructInstance
> Module Products.CMFCore.TypesTool, line 450, in _constructInstance
> Module Products.ATContentTypes.content.event, line 10, in addATEvent
> Module Products.ATContentTypes.content.base, line 136, in
> initializeArchetype
> Module Products.ATContentTypes.content.base, line 177, in edit
> TypeError: cmf_edit() got an unexpected keyword argument
> 'modification_date'
Not reproducable with my code:
from DateTime.DateTime import DateTime
context.invokeFactory('Event', id='foo', modification_date=DateTime())
return 'one'
Feel free filling a bug report.
-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20090711/edb8883b/attachment.vcf>
More information about the Product-Developers
mailing list