[Zope] 'int' object has no attribute 'objectValues'

tonylabarbara at aol.com tonylabarbara at aol.com
Mon Mar 12 18:01:27 EDT 2007


Hi;
I've written this PT:
 
<span tal:define="batch here/quotes/objectValues; num python:len(batch)">
<p tal:replace="python:here.randomNumber(num)" />
</span>

...which calls this external method:
 
import random
def randomNumber(num):
   return random.random(num)
 
...and throws this error:
 
Error Type: AttributeError
Error Value: 'int' object has no attribute 'objectValues' 
Why?
TIA,
Tony
________________________________________________________________________
AOL now offers free email to everyone.  Find out more about what's free from AOL at AOL.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20070312/bc69b262/attachment.htm


More information about the Zope mailing list