[Erp5-dev] Error on 'getPreferredHtmlStyleDevelopperMode'

Gabriel Lima de Oliveira ciberglo at gmail.com
Tue Feb 22 16:11:09 CET 2011


Hi.
I'm still using zope2.8, and trying to access my erp5 view, but it's raising
error
The ZMI works fine, but the site itself doesn't appear.
Instead, it's throwing KeyError 'getPreferredHtmlStyleDevelopperMode' when I
try to access person module view, showed on traceback attached in this
email.

Does someone know how to fix it?

 Att,
Gabriel L. Oliveira
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20110222/1eb03623/attachment.htm>
-------------- next part --------------
    
Site Error

An error was encountered while publishing this resource.

KeyError
Sorry, a site error occurred.

Traceback (innermost last):

    * Module ZPublisher.Publish, line 188, in publish_module_standard
    * Module Products.Localizer.patches, line 88, in new_publish
    * Module ZPublisher.Publish, line 145, in publish
    * Module Zope2.App.startup, line 216, in zpublisher_exception_hook
    * Module ZPublisher.Publish, line 114, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 40, in call_object
    * Module Products.ERP5Type.Base, line 2475, in view
    * Module Products.ERP5Type.Base, line 2470, in _renderDefaultView
    * Module Products.ERP5Form.Form, line 651, in __call__
    * Module Products.PageTemplates.PageTemplate, line 104, in pt_render
      <ZopePageTemplate at /erp5/form_list used for /erp5/PersonModule_viewPersonList>
    * Module TAL.TALInterpreter, line 206, in __call__
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 426, in do_optTag_tal
    * Module TAL.TALInterpreter, line 411, in do_optTag
    * Module TAL.TALInterpreter, line 406, in no_tag
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 711, in do_useMacro
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 426, in do_optTag_tal
    * Module TAL.TALInterpreter, line 411, in do_optTag
    * Module TAL.TALInterpreter, line 406, in no_tag
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 426, in do_optTag_tal
    * Module TAL.TALInterpreter, line 411, in do_optTag
    * Module TAL.TALInterpreter, line 406, in no_tag
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 711, in do_useMacro
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 426, in do_optTag_tal
    * Module TAL.TALInterpreter, line 411, in do_optTag
    * Module TAL.TALInterpreter, line 406, in no_tag
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 426, in do_optTag_tal
    * Module TAL.TALInterpreter, line 411, in do_optTag
    * Module TAL.TALInterpreter, line 406, in no_tag
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 711, in do_useMacro
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 426, in do_optTag_tal
    * Module TAL.TALInterpreter, line 411, in do_optTag
    * Module TAL.TALInterpreter, line 406, in no_tag
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 426, in do_optTag_tal
    * Module TAL.TALInterpreter, line 411, in do_optTag
    * Module TAL.TALInterpreter, line 406, in no_tag
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 711, in do_useMacro
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 426, in do_optTag_tal
    * Module TAL.TALInterpreter, line 411, in do_optTag
    * Module TAL.TALInterpreter, line 406, in no_tag
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 481, in do_setGlobal_tal
    * Module Products.PageTemplates.TALES, line 221, in evaluate
      URL: /erp5/global_definitions
      Line 6, Column 4
      Expression: standard:'portal_preferences/getPreferredHtmlStyleDevelopperMode'
      Names:

      {'container': <ERP5Site at /erp5>,
       'context': <Person Module at /erp5/person_module>,
       'default': <Products.PageTemplates.TALES.Default instance at 0xb67b34ec>,
       'form': <ERP5Form at /erp5/PersonModule_viewPersonList used for /erp5/person_module>,
       'here': <Person Module at /erp5/person_module>,
       'key_prefix': None,
       'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xcbf61ac>,
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0xb67b954c>,
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0xcbf61ac>,
       'request': <HTTPRequest, URL=http://localhost:18080/erp5/person_module>,
       'root': <Application at >,
       'template': <ERP5Form at /erp5/PersonModule_viewPersonList used for /erp5/person_module>}

    * Module Products.PageTemplates.Expressions, line 185, in __call__
    * Module Products.PageTemplates.Expressions, line 173, in _eval
    * Module Products.PageTemplates.Expressions, line 127, in _eval
      __traceback_info__: portal_preferences
    * Module Products.PageTemplates.Expressions, line 320, in restrictedTraverse
      __traceback_info__: {'path': ['getPreferredHtmlStyleDevelopperMode'], 'TraversalRequestNameStack': []}
    * Module OFS.ObjectManager, line 715, in __getitem__

KeyError: 'getPreferredHtmlStyleDevelopperMode' (Also, the following error occurred while attempting to render the standard error message, please see the event log for full details: 'getPreferredHtmlStyleDevelopperMode')

Troubleshooting Suggestions

    * The URL may be incorrect.
    * The parameters passed to this resource may be incorrect.
    * A resource that this resource relies on may be encountering an error.

For more detailed information about the error, please refer to error log.

If the error persists please contact the site maintainer. Thank you for your patience.


More information about the Erp5-dev mailing list