Re: [Zope-dev] Custom dtml tag ... parameters not evaluated

2001-04-12 Thread Dieter Maurer
Romain Slootmaekers writes: > I'm trying to create a custom dtml tag > ... evaluating attribute valued ... Look at the attribute "branches_expr" in "TreeDisplay.TreeTag" as an example... Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://

RE: [Zope-dev] Custom dtml tag ... parameters not evaluated

2001-04-12 Thread Randall F. Kern
Try adding something like this in your render method (haven't tried this, but from a poking around the code in the DocumentTemplate directory in the past this seems about right): import VSEval expr = VSEval.Eval(variable_you_want_to_evaluate) value = expr.eval(md) -Randy > -Original Message

[Zope-dev] Custom dtml tag ... parameters not evaluated

2001-04-12 Thread Romain Slootmaekers
Yo, I'm trying to create a custom dtml tag, and after the How-to on this (http://www.zope.org/Members/z113/1) that in itself posed no problem: easy as pie. The problem I'm having with the tag is that parameters are not evaluated. for instance (my tag's name is 'aa') gives me in the cod

Re: [Zope-dev] Custom dtml tag

2000-09-18 Thread Andy McKay
thats what Ive done and stayed away from using a dtml-tag. Thanks for your help. - Original Message - From: "Brett Carter" <[EMAIL PROTECTED]> To: "Andy McKay" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, September 13, 2000 9:51 AM Subje

Re: [Zope-dev] Custom dtml tag

2000-09-13 Thread Brett Carter
If that would work that would be great - but a it Andy> certainly doesnt seem to on a standard DTMLDocument / Method. Andy> - Original Message - Andy> From: "Brett Carter" <[EMAIL PROTECTED]> Andy> To: "Andy McKay" <[EMAIL PROTECTED]

Re: [Zope-dev] Custom dtml tag

2000-09-12 Thread Andy McKay
To: "Andy McKay" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, September 12, 2000 4:17 PM Subject: Re: [Zope-dev] Custom dtml tag > Andy: here's what I've gleaned - in a dtml tag's render() method, you > get passed in self and a template dic

Re: [Zope-dev] Custom dtml tag

2000-09-12 Thread Brett Carter
MAIL PROTECTED]> Andy> To: "Andy McKay" <[EMAIL PROTECTED]> Andy> Cc: <[EMAIL PROTECTED]> Andy> Sent: Tuesday, September 12, 2000 11:29 AM Andy> Subject: Re: [Zope-dev] Custom dtml tag >> On Tue, Sep 12, 2000 at 09:26:49AM -070

Re: [Zope-dev] Custom dtml tag

2000-09-12 Thread Andy McKay
ot;Martijn Pieters" <[EMAIL PROTECTED]> To: "Andy McKay" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, September 12, 2000 11:29 AM Subject: Re: [Zope-dev] Custom dtml tag > On Tue, Sep 12, 2000 at 09:26:49AM -0700, Andy McKay wrote: > > Hmm

Re: [Zope-dev] Custom dtml tag

2000-09-12 Thread Martijn Pieters
<[EMAIL PROTECTED]> > Sent: Monday, September 11, 2000 4:03 PM > Subject: [Zope-dev] Custom dtml tag > > > > Im playing with a custom dtml-tag along the lines of > > constructs a url to a catalog query. It works fine, I would just like to > > extend it a bit and f

Re: [Zope-dev] Custom dtml tag

2000-09-12 Thread Brett Carter
> "Andy" == Andy McKay <[EMAIL PROTECTED]> writes: Andy - see the thread I started called 'Acqusition in a DTML tag' I have a similar question. -Brett Andy> Hmm well ive found i have object and of Andy> course my self. Perhaps there is a pythonism I have to Andy> research here.

Re: [Zope-dev] Custom dtml tag

2000-09-12 Thread Andy McKay
Hmm well ive found i have object and of course my self. Perhaps there is a pythonism I have to research here. - Original Message - From: "Andy McKay" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 11, 2000 4:03 PM Subject: [Zope-dev] Custom d

[Zope-dev] Custom dtml tag

2000-09-11 Thread Andy McKay
Im playing with a custom dtml-tag along the lines of constructs a url to a catalog query. It works fine, I would just like to extend it a bit and for this I would need to get to the calling object. For example, there will be a different query depending upon the object the dtml-query tag is conta