[Zope] relative paths....

Tom Jenkins tjenkins@devis.com
Tue, 21 Aug 2001 15:32:11 -0400


Hi Aaron,

Rustad, Aaron wrote:
> 
> <dtml-in expr="control/sql/page_links_query(page_path=PATH_INFO)"> <A
> HREF="&dtml-link_path;"><dtml-var menu_item>
> 

when you use expr="..." you are in python, so what you said above was 
divide control by sql by results of function page_links_query <wink>. 
You should use the '.' instead

<dtml-in expr="control.sql.page_links_query(....">

> Why doesn't this work? The error says:
> Error Type: NameError
> Error Value: global name 'sql' is not defined
> 
> Any suggestions would be appreciated.
> Thanks!
> Aaron.
> 


-- 
Tom Jenkins
devIS - Development Infostructure
http://www.devis.com