RE: [Zope] How to calculate variables using DTML
I get: An error was encountered while publishing this resource. Invalid request The parameter, data, was omitted from the request. Make sure to specify all required parameters, and try the request again. when traying to save the dtml document, when i errase this line does not show the error.
From: "Giuseppe Bonelli" <giuseppe.bonelli@tiscali.it> Reply-To: <giuseppe.bonelli@tiscali.it> To: "Alexander Alvarado" <funalito@hotmail.com>,<zope@zope.org> Subject: RE: [Zope] How to calculate variables using DTML Date: Sat, 13 Sep 2003 00:06:33 +0200
What kind of error you get?
Have a look at your REQUEST object to check that the variables are there.
__peppo
-----Original Message----- From: zope-bounces@zope.org [mailto:zope-bounces@zope.org]On Behalf Of Alexander Alvarado Sent: venerdì 12 settembre 2003 23.35 To: zope@zope.org Subject: [Zope] How to calculate variables using DTML
Hi I just want to create a new variable adding some other vatiables, something like:
TTP= ( T_ADT + T_SRC + T_CHD)*TT_NITES
As I recieve this variables from a previous form I guess I have to convert them into integer I thought that <dtml-set TTP="(_.int(ADT)+_.int(CHD)+_.int(SRC)*(_.int(TT_NITES))"> would work, but it does not.
Hoe can I do this?
Thanks !!!!!!!!!!!!!!!!!!!!!!!!!
_________________________________________________________________ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.yupimsn.com/
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
_________________________________________________________________ Consigue aquí las mejores y mas recientes ofertas de trabajo en América Latina y USA: www.yupimsn.com/empleos
I get: An error was encountered while publishing this resource.
Invalid request
The parameter, data, was omitted from the request. Make sure to specify all required parameters, and try the request again.
when traying to save the dtml document, when i errase this line does not show the error.
Hi I just want to create a new variable adding some other vatiables, something like:
TTP= ( T_ADT + T_SRC + T_CHD)*TT_NITES
As I recieve this variables from a previous form I guess I have to convert them into integer I thought that <dtml-set TTP="(_.int(ADT)+_.int(CHD)+_.int(SRC)*(_.int(TT_NITES))"> would work, but it does not.
Something seems to want a request parameter called 'data', though from your code I can't say why. Since it's not obvious, whittle it down until it it. What happens when you instead try to display the contents of all the parameters you use above, one by one? What exactly can you take out of that statement to make it work? (Does it work if you set it to a constant value?) You could also try a Python script with those parameters, which might give you a better error on its parameters. (And would simplify and de-uglify your DTML.) --jcc -- "My point and period will be throughly wrought, Or well or ill, as this day's battle's fought."
participants (2)
-
Alexander Alvarado -
J Cameron Cooper