On Sat, May 13, 2000 at 12:33:16PM -0400, Howard Weiss wrote:
Can/does ZOPE run under Windows/95?
Yes, Zope runs just fine on Win98. You cannot run it as a background service like you can on NT however. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server ---------------------------------------------
Hi, I am trying to get data from a form, and I am using the REQUEST variable. When i simple do <dtml-var REQUEST> it prints out all of the variables i have access to. When i try getting to a single one such as <dtml-var REQUEST['foo']> i get a KeyError (and foo was one of the variables listed when i simply printed REQUEST). Error Type: KeyError Error Value: REQUEST['foo'] thanks, - Lex Berezhny
I am trying to get data from a form, and I am using the REQUEST variable.
easiest thing since slice bread :)
When i simple do <dtml-var REQUEST> it prints out all of the variables i have access to.
yup that is basically a chunk of HTTP namespace.
When i try getting to a single one such as <dtml-var REQUEST['foo']> i get a KeyError (and foo was one of the variables listed when i simply printed REQUEST).
why not just <dtml-var foo> ? all FORM variables are in your namespace. but to answer your question (please correct me if I'm wrong) - but REQUEST is a REQUEST object, not a dictionary object. (?) create DTMLMethod called aMethod: <dtml-var standard_html_header> <dtml-if foo> out of the namespace: <dtml-var foo><br> print foo property of REQUEST object: <dtml-var "REQUEST.foo"> <dtml-else> <form name="aform" action="aMethod"> <input type=text name="foo"> </form> </dtml-if> <dtml-var standard_html_footer> hth, ~runyaga
why not just <dtml-var foo> ? all FORM variables are in your namespace. but to answer your question (please correct me if I'm wrong) - but REQUEST is a REQUEST object, not a dictionary object. (?)
i believe that it overloads the dictionary object...
create DTMLMethod called aMethod:
<dtml-var REQUEST.foo> doesnt work, i think it has something to do with aquisition..? This problem only occured recently, and i tried backtracking to see what I did but cant see to find the problem... the REQUEST variable simply doesnt work, the form passing works because is can still do <dtml-var foo>, but i would like to find out what happend... any suggestions? - Lex
hth, ~runyaga
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
<dtml-var REQUEST.foo> doesnt work, i think it has something to do with aquisition..? This problem only occured recently, and i tried backtracking to see what I did but cant see to find the problem... the REQUEST variable simply doesnt work, the form passing works because is can still do <dtml-var foo>, but i would like to find out what happend... any suggestions?
try <dtml-var "REQUEST.foo"> you are missing the quotes. look at my example, cut and paste it into a DTML Method called aMethod and run it. ~runyaga
Hi,
try <dtml-var "REQUEST.foo"> you are missing the quotes. look at my example, cut and paste it into a DTML Method called aMethod and run it.
thanks I finally realized that, but the thing that was messing me up is that i was calling a "RESPONSE.redirect(some_url)" before i was getting the form variables, and it seemed to be messing things up.... maybe it clears the form variables, i dono... but anywasy thanks for you your help... - Lex
lexberezhny writes:
Hi, I am trying to get data from a form, and I am using the REQUEST variable. When i simple do <dtml-var REQUEST> it prints out all of the variables i have access to. When i try getting to a single one such as
You need quotes to evaluate the expression: <dtml-var "REQUEST['foo']"> i get a KeyError (and foo was one of the variables listed
when i simply printed REQUEST). Error Type: KeyError Error Value: REQUEST['foo']
thanks, - Lex Berezhny
All my best, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
participants (6)
-
alan runyan -
Howard Weiss -
Jason Cunliffe -
Jason Spisak -
lexberezhny -
Martijn Pieters