[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') dtml-let y="someValue"

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

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]

Re: [Zope-dev] Custom dtml tag

2000-09-18 Thread Andy McKay
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 Subject: Re: [Zope-dev] Custom dtml t

Re: [Zope-dev] Custom dtml tag

2000-09-13 Thread Brett Carter
certainly doesnt seem to on a standard DTMLDocument / Method. Andy - Original Message - Andy From: "Brett Carter" [EMAIL PROTECTED] Andy To: "Andy McKay" [EMAIL PROTECTED] Andy Cc: [EMAIL PROTECTED] Andy Sent: Tuesday, September 12, 2000 4:17 PM Andy

Re: [Zope-dev] Custom dtml tag

2000-09-12 Thread Andy McKay
Hmm well ive found i have TemplateDict 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 dtml

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 TemplateDict object and of Andy course my self. Perhaps there is a pythonism I have to Andy research

Re: [Zope-dev] Custom dtml tag

2000-09-12 Thread Martijn Pieters
nt: Monday, September 11, 2000 4:03 PM Subject: [Zope-dev] Custom dtml tag Im playing with a custom dtml-tag along the lines of dtm-query foo 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. F

Re: [Zope-dev] Custom dtml tag

2000-09-12 Thread Andy McKay
rtijn 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 well ive found i have TemplateDict object a

Re: [Zope-dev] Custom dtml tag

2000-09-12 Thread Brett Carter
r 12, 2000 11:29 AM Andy Subject: Re: [Zope-dev] Custom dtml tag On Tue, Sep 12, 2000 at 09:26:49AM -0700, Andy McKay wrote: Hmm well ive found i have TemplateDict object and of course my self. Perhaps there is a pythonism I have to research here. - Origin

Re: [Zope-dev] Custom dtml tag

2000-09-12 Thread Andy McKay
quot;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 dict, in my example let's call it 'md'. md is