Jesper Steen Steffensen wrote at 2006-7-29 22:30 +0200:
...
@ Dieter - thanks for clearing that up. Maybe [sequence]-var-[variable] or
rather outer-var-role will work then.. Will give it a try when I get back
to work.
I am unaware that this will work -- though I may be wrong.
Usually, you would
Jesper Steen Steffensen wrote at 2006-7-28 22:27 +0200:
This won't work:
dtml-in qry_user_roles prefix=outer
dtml-in qry_roles
dtml-if expr=outer_role==role
Roles are matching
/dtml-if
/dtml-in
/dtml-in
I get an error that says key error - outer_role doesn't exist.
It
The prefix affects only the sequence- variables (it replaces the
sequence- prefix by prefix_). It does not do anything withthe other (non sequence- prefixed) variables definied by the dtml-in.Dieter
@ Dieter - thanks for clearing that up. Maybe [sequence]-var-[variable] or rather outer-var-role
This won't work:dtml-in qry_user_roles prefix=outer dtml-in qry_roles dtml-if expr=outer_role==role Roles are matching /dtml-if
/dtml-in/dtml-inI get an error that says key error - outer_role doesn't exist.It doesn't matter if I prefix the inner dtml-in as well. (I've read it isn't necessary
En/na Jesper Steen Steffensen ha escrit:
This won't work:
dtml-in qry_user_roles prefix=outer
dtml-in qry_roles
dtml-if expr=outer_role==role
Roles are matching
/dtml-if
/dtml-in
/dtml-in
I get an error that says key error - outer_role doesn't exist.
It doesn't matter
Jesper Steen Steffensen wrote:
This won't work:
dtml-in qry_user_roles prefix=outer
dtml-in qry_roles
dtml-if expr=outer_role==role
Roles are matching
/dtml-if
/dtml-in
/dtml-in
I get an error that says key error - outer_role doesn't exist.
It doesn't matter if I
- Original Message -
From: David H [EMAIL PROTECTED]
To: Jesper Steen Steffensen [EMAIL PROTECTED]
Cc: zope@zope.org
Sent: Friday, July 28, 2006 5:53 PM
Subject: Re: [Zope] Can't nest dtml-in using prefix ...
Why are you using DTML? Its a *dying art*. I can hardly look at it
anymore
Give more info.Define qry_user_roles and qry_roles as part of your
question.Why are you using DTML?Its a *dying art*.I can hardly look at itanymore :-)DTML is depreciated in Zope (I think) and new people should go right toPage Templates and Python Scripts (Im sure).
Can you code this in a Python
Jesper Steen Steffensen wrote:
Give
more info.Define qry_user_roles and qry_roles as part of your
question.
Why are you using DTML?Its a *dying art*.I can hardly look at it
anymore :-)
DTML is depreciated in Zope (I think) and new people should go right to
Page Templates