[Zope] Silva-Error on edit-, metadata or access-tab
Elena Schulz
elena.schulz@gmx.net
Wed, 29 Jan 2003 17:39:24 +0100
Hi,
I managed to install Silva-0.8.6.1 and imported the Silva-0.8.zexp example.
As soon as I try to hit the edit-, metadata or access-tab of a document I
get the following error. Preview and publish are ok.
Can anybody help me out?
-- many thanks for your replies, Elena
Error Type: AttributeError
Error Value: activate_security_hack
Zope reported an error for:
Path: /silva/publication/fistDocument/edit/tab_edit
URL: http://localhost:8080/silva/publication/fistDocument/edit/tab_edit
Client:
Browser: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)
Remote address: 127.0.0.1
Remote identity:
Linked from:
http://localhost:8080/silva/publication/edit/add_document
File Python expression "model.activate_security_hack()", line 2, in f
Traceback (innermost last):
File J:\Zope\Zope_2_6\lib\python\ZPublisher\Publish.py, line 150, in
publish_module
File J:\Zope\Zope_2_6\lib\python\ZPublisher\Publish.py, line 114, in
publish
File J:\Zope\Zope_2_6\lib\python\Zope\__init__.py, line 171, in
zpublisher_exception_hook
File J:\Zope\Zope_2_6\lib\python\ZPublisher\Publish.py, line 98, in
publish
File J:\Zope\Zope_2_6\lib\python\ZPublisher\mapply.py, line 88, in mapply
(Object: tab_edit)
File J:\Zope\Zope_2_6\lib\python\ZPublisher\Publish.py, line 39, in
call_object
(Object: tab_edit)
File J:\Zope\Zope_2_6\lib\python\Shared\DC\Scripts\Bindings.py, line 252,
in __call__
(Object: tab_edit)
File J:\Zope\Zope_2_6\lib\python\Shared\DC\Scripts\Bindings.py, line 283,
in _bindAndExec
(Object: tab_edit)
File
J:\Zope\Zope_2_6\lib\python\Products\PageTemplates\ZopePageTemplate.py, line
228, in _exec
(Object: tab_edit)
File J:\Zope\Zope_2_6\lib\python\Products\PageTemplates\PageTemplate.py,
line 95, in pt_render
(Object: tab_edit)
File J:\Zope\Zope_2_6\lib\python\TAL\TALInterpreter.py, line 186, in
__call__
File J:\Zope\Zope_2_6\lib\python\TAL\TALInterpreter.py, line 230, in
interpret
File J:\Zope\Zope_2_6\lib\python\TAL\TALInterpreter.py, line 689, in
do_useMacro
File J:\Zope\Zope_2_6\lib\python\TAL\TALInterpreter.py, line 230, in
interpret
File J:\Zope\Zope_2_6\lib\python\TAL\TALInterpreter.py, line 712, in
do_defineSlot
File J:\Zope\Zope_2_6\lib\python\TAL\TALInterpreter.py, line 230, in
interpret
File J:\Zope\Zope_2_6\lib\python\TAL\TALInterpreter.py, line 398, in
do_optTag_tal
File J:\Zope\Zope_2_6\lib\python\TAL\TALInterpreter.py, line 380, in
no_tag
File J:\Zope\Zope_2_6\lib\python\TAL\TALInterpreter.py, line 230, in
interpret
File J:\Zope\Zope_2_6\lib\python\TAL\TALInterpreter.py, line 459, in
do_setLocal_tal
File J:\Zope\Zope_2_6\lib\python\Products\PageTemplates\TALES.py, line
217, in evaluate
File J:\Zope\Zope_2_6\lib\python\Products\PageTemplates\ZRPythonExpr.py,
line 48, in __call__
(Info: model.activate_security_hack())
File Python expression "model.activate_security_hack()", line 2, in f
AttributeError: (see above)
File J:\Zope\Zope_2_6\lib\python\Products\PageTemplates\ZRPythonExpr.py,
line 48, in __call__
44: __traceback_info__ = self.expr
45: code = self._code
46: g = self._bind_used_names(econtext)
47: g.update(self._globals)
48: return eval(code, g, {})
. . . . . g= {'_getattr_': <built-in function guarded_getattr>,
'_getitem_': <function guarded_getitem at 00D60A3C>, '__debug__': 1,
'model': <Silva Document instance fistDocument>, '__builtins__': {'cmp':
<built-in function cmp>, 'round': <built-in function round>,
'AttributeError': <class exceptions.AttributeE ... 3066 more bytes (not
shown)
. . . . . code= <code object f at 0364E990, file "Python expression
"model.activate_security_hack()"", line 1>
49:
50: class _SecureModuleImporter:
51: __allow_access_to_unprotected_subobjects__ = 1
52: def __getitem__(self, module):