dtml-in sql => dtml-in anything?
Is it possible to replace an existing ZSQL method with an identical Python External Method that behaves exactly the same way? So if I have a ZSQL method "GetThingFromDB" <dtml-in GetStuffFromDB> got a <dtml-var thing> </dtml-in> Can I replace "GetThingFromDB" with a Python External Method? I've discovered that if I return a list, then that list gets returned one item at a time. But what value does each item have? I'd like to just have the external method return exactly the same thing as the ZSQL, but I'm having some problem finding what format (if any) that is. Is this sort of thing even possible? Thanks, JJ
+-------[ Joh Johannsen ]---------------------- | | I'd like to just have the external method return exactly the same thing | as the ZSQL, but I'm having some problem finding what format (if any) | that is. | | Is this sort of thing even possible? You'll need to look at the ResultSet class that is used by ZSQL Methods and ZCatalogs amongst other thing. Once you know how they work, it's pretty easy to use them. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au|
participants (2)
-
Andrew Kenneth Milton -
Joh Johannsen