Bonjour,
lorsque sur une boite flash j'essaie de mettre le guard suivant:
python:portal.Localizer.get_selected_language() == "fr"

j'obtiens une erreur du type :
AttributeError:'NoneType' object has no attribute 'getStatusOf'
cfr attach

Quelqu'un aurait une idée pour pouvoir avoir cette boîte qui ne
s'affiche que dans le cas où la langue actuelle est le français ?

--
_________________________
 Pascal Van Caldenborgh
 Senior Consultant
 http://teddybeer.objectis.net
_________________________
        


    Site Error

An error was encountered while publishing this resource.

*AttributeError*

Sorry, a site error occurred.

Traceback (innermost last):

    * Module ZPublisher.Publish, line 150, in publish_module
    * Module Products.Localizer, line 58, in new_publish
    * Module ZPublisher.Publish, line 114, in publish
    * Module Zope.App.startup, line 199, in zpublisher_exception_hook
    * Module ZPublisher.Publish, line 98, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 39, in call_object
    * Module Shared.DC.Scripts.Bindings, line 252, in __call__
    * Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec
    * Module Products.CMFCore.FSPageTemplate, line 191, in _exec
    * Module Products.CMFCore.FSPageTemplate, line 124, in pt_render
    * Module Products.PTProfiler.ProfilerPatch, line 66, in
      __patched_render__
    * Module Products.PageTemplates.PageTemplate, line 95, in pt_render
      *<FSPageTemplate at /migration/folder_contents used for
      /migration/sections/fedichem>*
    * Module TAL.TALInterpreter, line 200, in __call__
    * Module TAL.TALInterpreter, line 244, in interpret
    * Module TAL.TALInterpreter, line 414, in do_optTag_tal
    * Module TAL.TALInterpreter, line 399, in do_optTag
    * Module TAL.TALInterpreter, line 394, in no_tag
    * Module TAL.TALInterpreter, line 244, in interpret
    * Module TAL.TALInterpreter, line 703, in do_useMacro
    * Module TAL.TALInterpreter, line 244, in interpret
    * Module TAL.TALInterpreter, line 414, in do_optTag_tal
    * Module TAL.TALInterpreter, line 399, in do_optTag
    * Module TAL.TALInterpreter, line 394, in no_tag
    * Module TAL.TALInterpreter, line 244, in interpret
    * Module TAL.TALInterpreter, line 703, in do_useMacro
    * Module TAL.TALInterpreter, line 244, in interpret
    * Module TAL.TALInterpreter, line 473, in do_setLocal_tal
    * Module Products.PageTemplates.TALES, line 220, in evaluate
      *Line 1124, Column 0*
      *Expression: <PythonExpr btool.getBoxes(here)>*
      *Names:*

{'container': <CMFSite instance at aeae1a0>,
 'default': <Products.PageTemplates.TALES.Default instance at 0xa74056c>,
 'here': <ProxyFolder at /migration/sections/fedichem>,
 'loop': <SafeMapping instance at db13cf8>,
 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance 
at 0xa732cd4>,
 'nothing': None,
 'options': {'args': ()},
 'repeat': <SafeMapping instance at db13cf8>,
 'request': <HTTPRequest, 
URL=http://localhost:9080/migration/sections/fedichem/folder_contents>,
 'root': <Application instance at ae8e480>,
 'template': <FSPageTemplate at /migration/folder_contents used for 
/migration/sections/fedichem>,
 'traverse_subpath': [],
 'user': admin}

    * Module Products.PTProfiler.ProfilerPatch, line 25, in __patched_call__
    * Module Products.PageTemplates.ZRPythonExpr, line 48, in __call__
      __traceback_info__: btool.getBoxes(here)
    * Module Python expression "btool.getBoxes(here)", line 1, in
      <expression>
    * Module Products.CPSDefault.BoxesTool, line 110, in getBoxes
    * Module Products.DCWorkflow.Guard, line 68, in check
    * Module Products.DCWorkflow.Expression, line 51, in __init__

AttributeError: 'NoneType' object has no attribute 'getStatusOf' (Also,
an error occurred while attempting to render the standard error message.)

------------------------------------------------------------------------

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 the error
log.

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

_______________________________________________
cps-users-fr 
Adresse de la liste : [email protected]
Gestion de l'abonnement : <http://lists.nuxeo.com/mailman/listinfo/cps-users-fr>

Répondre à