[Zope-CMF] Plone alpha3 and Topics - TypeError, portal_navigation typo
Brad Clements
bkc@murkworks.com
Wed, 21 Aug 2002 11:45:36 -0400
(already posted to the collector, solution enclosed below)
I'm trying to add a Topic object. I can add it ok, but when I try to save on the Edit or
Criteria page I get:
TypeError: No action "" for type "Topic"
I traced this back to CMFPlone/NavigationTool.py, line 322, in getNextRequestFor.
CMFTopics, edit criteria is handled in plone_3rdParty.CMFTopic.topic_editCriteria
But in portal_properties.navigation_properties, the property is listed as:
topic.topic_editcriteria.success
But it should be:
topic.topic_editCriteria.success
Same problem for topic_editTopic
So, I try to add topic.topic_editCriteria.success to navigation_properties, but I
get an "unauthorized" even though I'm Manager!
Weird. heh, it lets me add the property as super user..
So .. need to either change the script names and actions that call those scripts, or
change the navigation properties to use uppercase as needed.
Here's the traceback.
Traceback (innermost last):
File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 150, in publish_module
File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 114, in publish
File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook
(Object: Workshops)
File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 98, in publish
File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/mapply.py, line 88, in mapply
(Object: topic_editCriteria)
File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 39, in call_object
(Object: topic_editCriteria)
File /usr/local/Zope/Builders/Products/CMFCore/FSPythonScript.py, line 90, in __call__
(Object: topic_editCriteria)
File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 252, in __call__
(Object: topic_editCriteria)
File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in _bindAndExec
(Object: topic_editCriteria)
File /usr/local/Zope/Builders/Products/CMFCore/FSPythonScript.py, line 124, in _exec
(Object: topic_editCriteria)
(Info: ({'script': <FSPythonScript instance at 8cc0d88>, 'context': <Topic instance at 96b0610>, 'container': <CMFSite instance at 9132958>, 'traverse_subpath': []}, (<h3>form</h3><table><tr valign="top" align="left"><th>criteria</th><td>[{'id': 'crit__Subject', 'operator': 'or', 'value': [''
File Script (Python), line 24, in topic_editCriteria
File /usr/local/Zope/Builders/Products/CMFPlone/NavigationTool.py, line 322, in getNextRequestFor
(Object: portal_navigation)
File /usr/local/Zope/Builders/Products/CMFCore/TypesTool.py, line 227, in getActionById
(Object: Topic)
TypeError: (see above)
Brad Clements, bkc@murkworks.com (315)268-1000
http://www.murkworks.com (315)268-9812 Fax
AOL-IM: BKClements