[ZPT] i18n error - is this the list ?
Florent Guillaume
fg@nuxeo.com
Wed, 16 Oct 2002 18:40:22 +0000 (UTC)
The ZPT code you showed is not enough for us to reproduce the problem
and diagnose what's wrong.
Florent
Gitte Wange <gitte@mmmanager.org> wrote:
> I am about to move our skins into the new translation stuff ... and it's
> really nice to work with the new i18n attributes ...
>
> But there is one thing I cannot figure out.
> In our main_template we have a slot called 'left' ...
>
> If I do this in the template:
> <div metal:define-slot="left">
> ... lots of HTML code here ...
> </div>
>
> I get the following error:
> AssertionError
>
> Sorry, a site error occurred.
>
> Traceback (innermost last):
>
> Module ZPublisher.Publish, line 150, in publish_module
> Module Products.Localizer, line 57, in new_publish
> Module ZPublisher.Publish, line 114, in publish
> Module Zope, line 171, 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.PageTemplates.ZopePageTemplate, line 228, in _exec
> Module Products.PageTemplates.PageTemplate, line 95, in pt_render
> <ZopePageTemplate at /portal/test_html>
> Module TAL.TALInterpreter, line 186, in __call__
> Module TAL.TALInterpreter, line 230, in interpret
> Module TAL.TALInterpreter, line 689, in do_useMacro
> Module TAL.TALInterpreter, line 230, in interpret
> Module TAL.TALInterpreter, line 476, in do_endI18nContext
> AssertionError: (Also, an error occurred while attempting to render the
> standard error message.)
>
> When I remove the <div> stuff everything works nice ....
> I have tried naming the slot otherwise but it doesn't make the error
> disappear ...
>
> Any good ideas ???
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com