[Zope] python script returning multiple values?

Laura McCord Laura.McCord at doucet-austin.com
Thu Sep 30 16:51:05 EDT 2004


Hi,

 I have a python script:
  
 def userInfo(userName):
   server = xmlrpclib.Server("http://tweety:8080/RPC2")
   email = server.da.emailInfo(userName)
   office = server.da.officeInfo(userName)
   pwd = server.da.pwdInfo(userName)
   acct = server.da.acctInfo(userName)
   dir = server.da.dirInfo(userName)
   return .....

I need to return all of the values and access them through a zope page
template. I can't find any documentation on this situation. I am
suspecting I probably need to create a list in my python script but not
sure yet how to display the values in my zpt.

Any ideas would be greatly appreciated.

Thanks,
 Laura


More information about the Zope mailing list