[Zope] REQUEST.get?
Thomas B. Passin
tpassin@mitretek.org
Tue, 26 Feb 2002 12:16:12 -0500
[Jan Johansson]
Why does <dtml-in expr="getCsbans(sort='<dtml-var
"REQUEST.get('sortid')">')" size=100 start=query_start>
give "Invalid attribute name, "REQUEST.get('sortid')", for tag <dtml-in
expr="getCsbans(sort='<dtml-var "REQUEST.get('sortid')">')" size=100
start=query_start>, on line 56 of displayCSBans" when trying to save. it
seems like valid code?
Well, for one thing you don't want to put dtml markup tags inside other dtml
markup tags, and you don't have to do that. If you want to refer to a
variable in the REQUEST, just say REQUEST['sortid'] directly. For
another, you are trying to have nested double quotes, which is also invalid
syntax for dtml, and which you also don't need.
No wonder Zope is getting confused.
Cheers,
Tom P