[Zope-dev] External Method Return value?

Chris McDonough chrism@digicool.com
Mon, 24 Jan 2000 14:35:21 -0500


Clayton,

This How-To might help:

http://www.zope.org/Members/jpenny/Accessing_a_ZSQL_Method_from_an_External_Method

Clayton Miller wrote:
> 
> Chris,
> Thanks for the timely response. What I am trying to do is to replace some
> code that use to be like:
> 
> someDTMLmethod
> --------------
>         dtml-in "someSQLmethod(anyParams)"
>                 <dtml-var FIELDA>, <dtml-var FIELDB>
>         /dtml-in
> 
> someSQLmethod
> -------------------------
>         select FIELDA, FIELDB from some Table ...
> 
> I am attempting to replace this with an external method like:
> 
> someDTMLmethod
> --------------
>         dtml-in "someExtmethod(anyParams)"
>                 <dtml-var FIELDA>, <dtml-var FIELDB>
>         /dtml-in
> 
> someExtMethod
> -----------------------
>         results = self.someSQLmethod(anyParams)
>         """ further processing of results into new results """
>         return newresults
> 
> someSQLmethod
> -------------------------
> same as above
> 
> How do I get the tuples(python return value) to work as the same
> type of results(old SQLMethod) to the dtml-in?
> Clayton
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com

-- 
Chris McDonough - Digital Creations, Inc.
Publishers of Zope - http://www.zope.org