[Zope] Re: How to pass arbitrary objects to a ZPT from
	Script(Python)
    Lee Harr 
    missive at hotmail.com
       
    Sat Nov  8 17:45:20 EST 2003
    
    
  
>My problem is this: How can I, from a python script, pass a result set
>which has been returned from a ZSQL method, on to a ZPT
How about this...
# script (python)
aaa = context.aaa # a zpt
foo = [1, 2, 3, 4, 5] # could be sql result
req = context.REQUEST
req.set('foo', foo)
return aaa(REQUEST=req)
###
Then in the zpt:
<span tal:replace="request/foo">foo goes here</span>
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail
    
    
More information about the Zope
mailing list