[Zope-CMF] NameError bug found
alan runyan
alan runyan" <runyaga@runyaga.com
Thu, 13 Jun 2002 23:13:57 -0500
Sidnei found a useful traceback looking into the NameError: context in
PythonScripts. He sent it to me because his email going to zope-cmf isnt
getting through ;(
<dreamcatcher> heres what i did
<dreamcatcher> created a fti based on folder
<dreamcatcher> created a fti based on document
<dreamcatcher> (cmfcore: portal folder and cmfdefault: document)
<dreamcatcher> then i customized document_edit and document_edit_form
<dreamcatcher> and then, when saving, i have the error on my python script
<dreamcatcher> (zodb python script)
Traceback (innermost last):
File /home/sidnei/Zope/Zope/lib/python/ZPublisher/Publish.py, line 150, in
publish_module
File /home/sidnei/Zope/Zope/lib/python/ZPublisher/Publish.py, line 114, in
publish
File /home/sidnei/Zope/Zope/lib/python/Zope/__init__.py, line 159, in
zpublisher_exception_hook
(Object: 18)
File /home/sidnei/Zope/Zope/lib/python/ZPublisher/Publish.py, line 98, in
publish
File /home/sidnei/Zope/Zope/lib/python/ZPublisher/mapply.py, line 88, in
mapply
(Object: document_edit)
File /home/sidnei/Zope/Zope/lib/python/ZPublisher/Publish.py, line 39, in
call_object
(Object: document_edit)
File /home/sidnei/Zope/Zope/lib/python/Shared/DC/Scripts/Bindings.py, line
252, in __call__
(Object: document_edit)
File /home/sidnei/Zope/Zope/lib/python/Shared/DC/Scripts/Bindings.py, line
283, in _bindAndExec
(Object: document_edit)
File
/home/sidnei/Zope/Zope/lib/python/Products/PythonScripts/PythonScript.py,
line 302, in _exec
(Object: document_edit)
(Info: ({'script': <PythonScript instance at 110944a0>, 'context':
<Document instance at 1139ebb0>, 'container': <CMFSite instance at
11053730>,
'traverse_subpath': []}, (), {}, None))
File Script (Python), line 28, in document_edit
UnboundLocalError: (see above)