[Zope] Fetching data from external methods

Chris Withers chrisw@nipltd.com
Wed, 12 Jul 2000 16:17:30 +0100


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:

>         <dtml-in "LDAPsearch('666666','*',REQUEST)">
>                 <dtml-var sn>
>         </dtml-in>

> this works
> <dtml-var "LDAPsearch('666666','*',REQUEST)">

...because that displays sn, which is what you're returning!

>         1) how i can input values in LDAPsearch(how i input here)

Don't understand what you want here...

>         2) i don't have any control of return value, it returns list like
> this
>         ('Ukko', '666666', 'oEmail')

you should be able to <dtml-in> over whatever is returning that...

Chris