[Zope-CMF] UIDTool changes break stuff... (UIDTool::register unauthorized)

Jens Vagelpohl jens at dataflake.org
Sat Aug 7 08:27:11 EDT 2004


Here's what I get from a fresh CMF portal after I log in with a new  
member and just try to view that member's index_html:

Traceback (innermost last):
   Module ZPublisher.Publish, line 101, in publish
   Module ZPublisher.mapply, line 88, in mapply
   Module ZPublisher.Publish, line 39, in call_object
   Module Shared.DC.Scripts.Bindings, line 306, in __call__
   Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
   Module Products.CMFCore.FSPageTemplate, line 195, in _exec
   Module Products.CMFCore.FSPageTemplate, line 121, in pt_render
   Module Products.PageTemplates.PageTemplate, line 96, in pt_render
    - <FSPageTemplate at /portal/document_view used for  
/portal/Members/jens/index_html>
   Module TAL.TALInterpreter, line 189, in __call__
   Module TAL.TALInterpreter, line 233, in interpret
   Module TAL.TALInterpreter, line 670, in do_useMacro
   Module TAL.TALInterpreter, line 233, in interpret
   Module TAL.TALInterpreter, line 408, in do_optTag_tal
   Module TAL.TALInterpreter, line 393, in do_optTag
   Module TAL.TALInterpreter, line 388, in no_tag
   Module TAL.TALInterpreter, line 233, in interpret
   Module TAL.TALInterpreter, line 636, in do_condition
   Module TAL.TALInterpreter, line 233, in interpret
   Module TAL.TALInterpreter, line 459, in do_setLocal_tal
   Module Products.PageTemplates.TALES, line 221, in evaluate
    - URL: file:CMFDefault/skins/zpt_generic/main_template.pt
    - Line 306, Column 2
    - Expression: <PythonExpr uidtool.register(here)>
    - Names:
       {'container': <CMFSite instance at 2c5a320>,
        'context': <Document at /portal/Members/jens/index_html>,
        'default': <Products.PageTemplates.TALES.Default instance at  
0x235a508>,
        'here': <Document at /portal/Members/jens/index_html>,
        'loop': <SafeMapping instance at 134cda0>,
        'modules':  
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at  
0x234bb48>,
        'nothing': None,
        'options': {'args': ()},
        'repeat': <SafeMapping instance at 134cda0>,
        'request': <HTTPRequest,  
URL=http://127.0.0.1:8080/portal/Members/jens/index_html/ 
document_view>,
        'root': <Application instance at 2bd2470>,
        'template': <FSPageTemplate at /portal/document_view used for  
/portal/Members/jens/index_html>,
        'traverse_subpath': [],
        'user': jens}
   Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
    - __traceback_info__: uidtool.register(here)
   Module Python expression "uidtool.register(here)", line 1, in  
<expression>
Unauthorized: You are not allowed to access 'register' in this context



More information about the Zope-CMF mailing list