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 external_method(your,params)>
  <dtml-var value1>
  <dtml-var value2>

If you are submitting to your external method from an HTML form, you
will need to return the HTML to be displayed:

def my_external_method(self,param1,param2):
        ...do stuff...
        string = '<HTML><BODY>'
        string = string + ...render your results here...
        string = string + '</BODY></HTML>'
        return string



Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to