Newbie, Newbie, Newbie....simple affectation
Hi, one more time, very sorry, but I m still blocked on a silly problem: In a dtml method (builder) I have: <dtml-var "index_html.raw"> <dtml-var "REQUEST['new_index_html']"> which gives me the code of my local index_html method, and the new raw I want it to be.... What would like to do is simply: <dtml-var "index_html.raw"> = <dtml-var "REQUEST['new_index_html']"> I want my index_html.raw being equal to my new_index_html var!!! I can not find the dtml syntaxe to do this very simple thing...... help, please, I feel ridiculous for working on it since two days..... Pierre, more and more desesperate!!!!
What would like to do is simply: <dtml-var "index_html.raw"> = <dtml-var "REQUEST['new_index_html']">
I want my index_html.raw being equal to my new_index_html var!!!
Pierre, more and more desesperate!!!!
Try: <dtml-call "REQUEST.set('index_html.raw',new_index_html)"> will work! PM
Pierre try: <untested> <dtml-call "manage_upload(new_index_html)"> </untested> Phil ----- Original Message ----- From: "Pierre Rougier" <prougier@ina.fr> To: <zope@zope.org> Sent: Thursday, May 04, 2000 5:18 PM Subject: [Zope] Newbie, Newbie, Newbie....simple affectation
Hi, one more time, very sorry, but I m still blocked on a silly problem:
In a dtml method (builder) I have:
<dtml-var "index_html.raw"> <dtml-var "REQUEST['new_index_html']">
which gives me the code of my local index_html method, and the new raw I want it to be....
What would like to do is simply: <dtml-var "index_html.raw"> = <dtml-var "REQUEST['new_index_html']">
I want my index_html.raw being equal to my new_index_html var!!!
I can not find the dtml syntaxe to do this very simple thing...... help, please, I feel ridiculous for working on it since two days.....
Pierre, more and more desesperate!!!!
_______________________________________________ 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 )
not sure what you want to accomplish. if you want to set a variable in the current namespace you can use the <dtml-let> tag, like <dtml-let newvar="oldvar"> </dtml-let> or <dtml-let newvar="'somestring'"> </dtml-let> if its a literal string. if you want to add/edit a dtml method you will have to use one of the manage* methods, like <dtml-call "manage_addDTMLMethod('somemethod','title',file=_.str(somevar))"> where somevar is a var that holds your data. the zope quick ref. document has a list of these manage* methods: http://www.zope.org/Members/ZQR hth peter. On Thu, 4 May 2000, Pierre Rougier wrote: : :Hi, one more time, very sorry, but I m still blocked on a silly problem: : :In a dtml method (builder) :I have: : :<dtml-var "index_html.raw"> :<dtml-var "REQUEST['new_index_html']"> : :which gives me the code of my local index_html method, and the new raw I :want it to be.... : :What would like to do is simply: :<dtml-var "index_html.raw"> = <dtml-var "REQUEST['new_index_html']"> : :I want my index_html.raw being equal to my new_index_html var!!! : :I can not find the dtml syntaxe to do this very simple thing...... help, :please, I feel ridiculous for working on it since two days..... : :Pierre, more and more desesperate!!!! : : :_______________________________________________ :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 ) : -- _________________________________________________ peter sabaini, mailto: sabaini@niil.at -------------------------------------------------
participants (4)
-
Marcel Preda -
Peter Sabaini -
Phil Harris -
Pierre Rougier