[Zope] Being sure that my number is Int

Alexandre Aguiar Alexandre Aguiar" <a.d.aguiar@hxl.com.br
Mon, 6 Aug 2001 15:32:26 -0300


This is a multi-part message in MIME format.

------=_NextPart_000_0018_01C11E8C.FF4BD8A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Im making a very simple python script within zope.

It has only one parameter and all it does is add 1 to the param value:

a =3D param
b =3D a + 1
return (a)

The problem is (I guess) that 'param' isnt a Int value, how can I "say" =
to zope that it is?

Thanks for the help!!

------=_NextPart_000_0018_01C11E8C.FF4BD8A0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Im making a very simple python script =
within=20
zope.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>It has only one&nbsp;parameter and all =
it does is=20
add 1 to the&nbsp;param value:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>a =3D param</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>b =3D a + 1</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>return (a)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The problem is (I guess) that 'param' =
isnt a Int=20
value, how can I "say" to zope that it is?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for the =
help!!</FONT></DIV></BODY></HTML>

------=_NextPart_000_0018_01C11E8C.FF4BD8A0--