[Zope-CMF] Re: [Plone-developers] Bug in CMFCore.WorkflowTool?
Julien Anguenot
ja at nuxeo.com
Mon Jul 18 10:16:26 EDT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
fixed on trunk and 1.5 branch (CMFDefault)
Can you try it out with your Plone instance ?
J.
Julien Anguenot wrote:
> Hi Martin,
>
> Martin Aspeli wrote:
>
>>>Hi,
>>>
>>>When I try to publish something (in Plone) I get the following traceback:
>>>
>>>Traceback (innermost last):
>>> Module ZPublisher.Publish, line 101, in publish
>>> Module ZPublisher.mapply, line 88, in mapply
>>> Module ZPublisher.Publish, line 39, in call_object
>>> Module Products.CMFFormController.FSControllerPythonScript, line 105,
>>>in __call__
>>> Module Products.CMFFormController.Script, line 141, in __call__
>>> Module Products.CMFCore.FSPythonScript, line 108, in __call__
>>> Module Shared.DC.Scripts.Bindings, line 306, in __call__
>>> Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
>>> Module Products.CMFCore.FSPythonScript, line 163, in _exec
>>> Module None, line 41, in content_status_modify
>>> - <FSControllerPythonScript at /test/content_status_modify used for
>>>/test/foo-and-bar/a-monkey-page>
>>> - Line 41
>>> Module Products.CMFCore.WorkflowTool, line 290, in doActionFor
>>>TypeError: isActionSupported() got an unexpected keyword argument 'comment'
>>>
>>>Looking at the code, CMFCore.WorkflowTool:290 has:
>>>
>>> if wf.isActionSupported(ob, action, **kw):
>>>
>>>but the interface and the implementation in CMFDefault says:
>>>
>>> def isActionSupported(self, ob, action):
>>>
>>>i.e. no **kw.
>>>
>>>I assume this is a bug? There are a ton of failing tests in Plone
>>>because of this; removing the '**kw' argument above fixes them.
>>>
>
>
> Right. I'm gonna fix this on the DefaultWorkflowDefinition within
> CMFDefault and add a testcase for it.
>
> I'll keep you posted when it's done.
>
> Thanks for the bug report.
>
>
> J.
>
> --
> Julien Anguenot | Nuxeo R&D (Paris, France)
> CPS Platform : http://www.cps-project.org
> Zope3 / ECM : http://www.z3lab.org
> mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66
_______________________________________________
Zope-CMF maillist - Zope-CMF at lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf
See http://collector.zope.org/CMF for bug reports and feature requests
- -------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Plone-developers mailing list
Plone-developers at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-developers
- --
Julien Anguenot | Nuxeo R&D (Paris, France)
CPS Platform : http://www.cps-project.org
Zope3 / ECM : http://www.z3lab.org
mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFC27m6GhoG8MxZ/pIRAhp9AJ93/+FgNtvXDXFXENB2TK2NaE/YSwCfVXuW
yvDR5JZeLx1iIsOeVKTQwoM=
=mgO6
-----END PGP SIGNATURE-----
More information about the Zope-CMF
mailing list