[CMF-checkins] CVS: CMF/CMFCore - ActionsTool.py:1.30
Sidnei da Silva
sidnei@x3ng.com.br
Thu, 25 Jul 2002 13:38:00 -0400
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv15005
Modified Files:
ActionsTool.py
Log Message:
Fixed a dummy bug, where actions from the types tool where getting the URL infinitely concatenated
=== CMF/CMFCore/ActionsTool.py 1.29 => 1.30 ===
# case). This prevents us from needing to check the condition.
ti = types_tool.getTypeInfo( object ) or TypeInformation('Dummy')
defs = ti.getActions()
- url = object.absolute_url()
+ object_url = object.absolute_url()
for d in defs:
# we can't modify or expose the original actionsd... this
# stems from the fact that getActions returns a ref to the
@@ -214,7 +214,7 @@
d = d.copy()
d['id'] = d.get('id', None)
if d['action']:
- url = '%s/%s' % (url, d['action'])
+ url = '%s/%s' % (object_url, d['action'])
d['url'] = url
d['category'] = d.get('category', 'object')
d['visible'] = d.get('visible', 1)