[Zope] Zope changing incoming info?
Chris Withers
chrisw@nipltd.com
Wed, 28 Feb 2001 23:47:43 +0000
Gary Perez wrote:
>
> <dtml-var "Get_Self_Info['cpuLoading']">
That should probably be:
<dtml-var "Get_Self_Info()['cpuLoading']">
You need to call your method if you went it to return its dictionary, just like
in any other python ;-)
> ### CALL 3 ###
> <dtml-let XYZ=Get_Self_Info>
> <dtml-var "XYZ['cpuLoading']">
> </dtml-let>
> returns
> {'cpuLoading': 100.0}
>
> My question is... why is Zope returning the correct float the first time
> (CALL 1), but returning an entirely different float for CALL 3?
Any chance you could mail your Get_Self_Info method?
cheers,
Chris