[Zope3-Users] Question/Problem with UserPreferences

Florian Lindner mailinglists at xgm.de
Fri Jun 10 14:13:24 EDT 2005


Am Freitag, 10. Juni 2005 14:06 schrieb Stephan Richter:
> On Thursday 09 June 2005 12:44, Florian Lindner wrote:
> > I try to use the value of email in a ZPT:
> >
> >       E-Mail: <span tal:replace="++preferences++/UserSettings/email" />
> >
> > or
> >
> >       E-Mail: <span tal:replace="++preferences++UserSettings/email" />
> >
> > both give this traceback:
> >
> > PTRuntimeError: ['Compilation failed', 'zope.tal.taldefs.TALError:
> > Invalid variable name "email" in expression
> > \'++preferences++UserSettings/email\', at line 6, column 15']
> >
> > What is wrong there?
>
> This is not a preferences error, but a pagetemplate one. I have no clue
> what could have gone wrong here. Can you try a different name? Maybe
> something like `email1`? I suspect a clash of variable names.

I've tried email1 and emailX as variable names. Both produce exactly the same 
error.
I got no idea what is wrong there...

Florian


More information about the Zope3-users mailing list