Zope, Relative Object Calls

Evan Simpson evan at 4-am.com
Mon Apr 28 20:14:28 CEST 2003


John Withers wrote:
> In the application I am working on, tags like the following appear:
> <dtml-var "apps.profile.forms.rpt_fetchallrefs(_.None,_,aboutnum=_['serialnum'])">
> 
> I am trying to get something like a relative anchor, where:
> <a href="forms/rpt_fetchallrefs">.</a> would work

You'll be much more likely to get answers to this sort of question on 
the Zope mailing list than here.

That said, have you tried:

<dtml-var "forms.rpt_fetchallrefs(_.None,_,aboutnum=_['serialnum'])">

If the DTML is being called in the correct context, acquisition should 
make this work.

Cheers,

Evan @ 4-am







More information about the Python-list mailing list