Zope with Python
Dragos Chirila
d.chirila at finsiel.ro
Fri Mar 19 07:16:04 EST 2004
Hi
int is a "global" method not a method from math module, so write like this:
<dtml-var expr="_.int(ANZAHL) + 1">
Dragos
> Hy,
>
> I'm using following code.
>
> <dtml-in expr="sqlBestandGetKuerzel(KURZFORM='B',BEREICH='01')">
> B/<dtml-var RUBRIK>/<dtml-var expr="_.math.int(ANZAHL) + 1">
> </dtml-in>
>
> Whats wrong with it. I'm always getting the following error:
> Error Type: AttributeError
> Error Value: 'math' module has no attribute 'int'
>
> Can anybody help me please.
>
> Bye,
> Holger
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list