[Zope] Separate folder with SQL Methods
Ben Avery
ben@thesite.org
Mon, 13 Jan 2003 11:00:58 +0000
you could do this in plain dtml with:
<dtml-with sql_queries>
<dtml-in query1>
</dtml-in>
</dtml-with>
the dtml-with query1 should find the sibling directory by acquisition.
or if you switch to using python scripts for logic and dtml for
presentation, which is my preferred method at least, you would call the
query like:
results=context.sql_queries.query1(any params here)
which gives you a Results object to play with
HTH
Ben
Arjan Huijzer wrote:
> Hello,
>
> This is my first posting on this list, so I don't know
> whether this question has been posted before.
>
> I am trying to access SQL Methods from a folder that
> is not a parent, but a sibling:
>
> /mywebsite
> /sql_quesries
> query1
> query2
> /html
> index_html
> welcome.html
>
> Is it possible to use the "query1" and "query2"
> methods from the DTML methods located in the "html"
> folder?
>
> Thanks in advance!
>
> Arjan Huijzer
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>