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://
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
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
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
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]
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
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
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
<[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
> "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.
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
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
12 matches
Mail list logo