[Zope] Need Help--urgently

cpdm cadlab cpdm at rediffmail.com
Wed Sep 6 18:27:14 EDT 2006


I am sure it should be trivial, but being newbee makes me shameless :)    What I am in need of is guideline about how to integrate python script and external python method.    I have a form through which I collect user input and forward it to a python script, which concatenates input in certain pattern and    feeds it to external method. Now external method runs fine and puts the results in a list called mlist. What I want to know is how    do  I  fetch the \"return mlist\" resulting from external method back to the python script which gave the input to it for processing.     The python script is named which searchuparam which gets user input from form and does something like this:uparam = str(0) + \",\" + str(0) + \",\" + str(1) + \",\" + str(0) + \",\" + str(0) + \",\" + str(DO) \\            + \",\" + str(NL) + \",\" + str(0) + \",\" + str(0) + \",\" + str(0) + \",\" + str(0) \\            + \",\" + str(TIME) +  \",\" + str(WM) + \",\" + str(NOP) + \",\" + str(EXP) + \",\" + str(GKH)context.code(uparam)code is the id of external method which processes uparam and at the end has statement return mlist   this mlist is what I am interested in getting back. I want external method to return me this list to my python script searchuparam. I tried reading and did google last week but without success. Any help is appreciated. TIA.yours md
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20060906/f1106b0c/attachment.htm


More information about the Zope mailing list