[Zope-CMF] Re: [CMF-checkins] SVN: CMF/branches/1.4/ Backported
several hand-picked fixes from CMF 1.5 branch, most of them
Sidnei da Silva
sidnei at enfoldsystems.com
Sat Sep 3 16:38:41 EDT 2005
On Sat, Sep 03, 2005 at 09:51:39PM +0200, Stefan H. Holek wrote:
| I get a traceback now from Guard.py
|
| exceptions.NameError: global name 'r' is not defined
| [snip]
| File "/autotest/temp/python21-zope26-cmf14-plone20/Products/
| CMFCore/WorkflowTool.py", line 119, in manage_addWorkflow
| ob = factory(id)
| File "/autotest/temp/python21-zope26-cmf14-plone20/Products/
| CMFPlone/PloneWorkflow.py", line 26, in createDefaultPloneWorkflow
| setupDefaultPloneWorkflow(ob)
| File "/autotest/temp/python21-zope26-cmf14-plone20/Products/
| CMFPlone/PloneWorkflow.py", line 11, in setupDefaultPloneWorkflow
| setupDefaultWorkflowRev2(wf)
| File "/autotest/temp/python21-zope26-cmf14-plone20/Products/
| DCWorkflow/Default.py", line 98, in setupDefaultWorkflowRev2
| props={'guard_roles':r_owner})
| File "/autotest/temp/python21-zope26-cmf14-plone20/Products/
| DCWorkflow/Transitions.py", line 126, in setProperties
| if g.changeFromProperties(props or REQUEST):
| File "/autotest/temp/python21-zope26-cmf14-plone20/Products/
| DCWorkflow/Guard.py", line 124, in changeFromProperties
| self.roles = tuple(r)
Amazing. There's no tests for that. I'll fix it.
--
Sidnei da Silva
Enfold Systems, LLC.
http://enfoldsystems.com
More information about the Zope-CMF
mailing list