[Zope] DTML to HTML

Paul Winkler pw_lists at slinkp.com
Tue Jun 1 21:07:02 EDT 2004


On Tue, Jun 01, 2004 at 04:58:53PM -0700, Jason C. Leach wrote:
> hi All:
> 
> What does this translate to in ZPT:          <dtml-if name="user_can_edit">
> Perhaps here/user_can_edit or python:here.user_can_edit?  Both don't 
> seem to work.

"don't seem to work" is vague. What error do you get?

The solution depends on where user_can_edit is found...

Is it set with a <dtml-let> elsewhere in the original dtml?
if so, then you don't need the "here" prefix.

Does it come from the request?
If so, then you want request/user_can_edit.


-- 

Paul Winkler
http://www.slinkp.com



More information about the Zope mailing list