Re: [Zope] Fetching data from external methods

2000-07-12 Thread Chris Withers
Jarkko Veijalainen wrote: in fact only problem here is how i return values from external method like obj.value1 , obj.value2 into zope and use them in dtml or/and in Zclass instances. in external method: return (obj1, obj2,) in DTML: dtml-in

RE: [Zope] Fetching data from external methods

2000-07-12 Thread Jarkko Veijalainen
sorry but your example did'nt work: in external method: return (obj1, obj2,) in DTML: dtml-in external_method(your,params) dtml-var value1 dtml-var value2 /dtml-in here is my submit forms code to explain my case form action="LDAPsearch" method=POST ENCTYPE="multipart/form-data"

RE: [Zope] Fetching data from external methods

2000-07-12 Thread Jarkko Veijalainen
FINALY, your code sould look like: In externalMethod: return res #ENTIRE obj DTML code: dtml-let resDTML="LDAPsearch('66','*',REQUEST)" dtml-var "resDTML.cn" dtml-var "resDTML.otherAttributes" /dtml-let yeah, thanks a lot, it works, but i have still a liitle problem

Re: [Zope] Fetching data from external methods

2000-07-12 Thread Chris Withers
Jarkko Veijalainen wrote: My method outputs are: res = (contains search result using forms input values) sn = res.sn (one of the values in res-object) return sn ^ that should be 'return res' ...then the following will work: