[Product-Developers] Python content type creation
Françoise Conil
fcodvpt at gmail.com
Sat Jul 11 14:39:28 UTC 2009
Same problem with "subjet"
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 Products.CMFCore.FSPythonScript, line 140, in __call__
Module Shared.DC.Scripts.Bindings, line 313, in __call__
Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
Module Products.CMFCore.FSPythonScript, line 196, in _exec
Module None, line 27, in createImportedEvtForHelp
- <FSPythonScript at /liris/SITE/test/createImportedEvtForHelp>
- Line 27
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 'subject'
I will create a bug report
2009/7/11 Andreas Jung <lists at zopyx.com>
> 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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20090711/4b7326a1/attachment.html>
More information about the Product-Developers
mailing list