[Zope-DB] Help with ZSQL Method in DTML

Andreas Jung lists at andreas-jung.com
Thu Aug 5 12:36:19 EDT 2004



--On Donnerstag, 5. August 2004 10:57 Uhr -0500 "Tuttle, Gene" 
<cetuttle at rottlundhomes.com> wrote:

> I am having a problem accessing a ZSQL method that is not in the
> acquisition path.
> When try the following I get an error
>
>
> <dtml-in "/SAS/queries/add_customer(REQUEST)">

Why should this notation work? You are mixing paths and Python syntax.
Something like

<dtml-in "restrictedTraverse('/sas/queries/add_customer')(REQUEST)" >

might work. Please check the DTML docs and ZSQL docs for details.

-aj


More information about the Zope-DB mailing list