Re: [Zope] Problem with DTML-CALL

2000-10-07 Thread Dieter Maurer

Tim Gildersleeve writes:
  The line is
  
   dtml-call "REQUEST.set('TOTALDEVIATION',fSTART)"
  Error Type: TypeError
  Error Value: number coercion failed
I can assure you, that the "number coercion failed" is not
raised in the above "REQUEST.set". "set" accepts any
type.

The problem arises at a later time, probably because "fSTART"
or some other computation incredient does not have the correct
type.

You know about the magic ":type" suffixes in form variables.
There is a howto about them at Zope.org.



Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




[Zope] Problem with DTML-CALL

2000-10-05 Thread Tim Gildersleeve

Hi

I am trying to get a DTML-CALL. to work, but am having a strange
problem.

The line is

dtml-call "REQUEST.set('TOTALDEVIATION',fSTART)"

I am trying to create a variable called TOTALDEVIATION and assign the value
of fSTART (passed through the documents POST or GET value).

If I do
dtml-call "REQUEST.set('TOTALDEVIATION',0)"

there is no problem, but with the first one, i get 

Error Type: TypeError
Error Value: number coercion failed

Now, I am assuming (I could be wrong) that this is a problem with the type
of the variable - it needs to handle floating point numbers such as 1.25 or
5.75 etc. 

Anyone have any idea - this has really got me stumpped.

Please reply to [EMAIL PROTECTED] as well as the list as I dont get the
time to search through the list every day.

Cheers

Tim Gildersleeve
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )