Evan Simpson writes:
> extended-attribute syntax
> (foo-name-name="x" instead of foo="_[_[x]]").
HELP!
I am sure, that such an extended attribute syntax would cause
hundreds of messages in this list.
I hope, it will not get adopted.
> I have considered proposing t
Stuart Foster writes:
> Dieter Maurer wrote:
> > You should include two positional parameters as well:
> >
> >
> This is the way I had to do it what's up with the two extra params?
DTML objects use the DocumentTemplate's (--> DocumentTemplate.DT_String)
__call__ function for rendering.
From: Stuart Foster <[EMAIL PROTECTED]>
> The first example is what I was doing. But felt it was hard to follow.
> However I would be interested in why it would be considered more robust.
I probably misused the word; what I meant was that the form is
less likely to have errors like forgetting th
: Zope List
Subject: Re: [Zope] How to Pass values to a DTML method ??
> Dieter Maurer
> You should include two positional parameters as well:
>
>
I've recently had explained to me a way that is more robust, and possibly
less confusing, than this idiotic idiom. I think it may s
--
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Dieter Maurer
> Sent: Monday, September 11, 2000 2:24 PM
> To: Stuart Foster
> Cc: Zope List
> Subject: Re: [Zope] How to Pass values to a DTML method ??
>
> Stuart Foster writes:
> > I have a DTML method t
> Dieter Maurer
> You should include two positional parameters as well:
>
>
I've recently had explained to me a way that is more robust, and possibly
less confusing, than this idiotic idiom. I think it may start appearing in
docs and training.
...or even better...
&dtml.-some_method;
...wh
This is the way I had to do it what's up with the two extra params?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Dieter Maurer
Sent: Monday, September 11, 2000 2:24 PM
To: Stuart Foster
Cc: Zope List
Subject: Re: [Zope] How to Pass values to a
Stuart Foster writes:
> I have a DTML method that is called from a document. I need to pass a value
> to it like a parameter would be passed to a function.
>
>
That does not look too bad, but you forgot the "..." around the call.
You should include two positional parameters as well:
'Test' is single quoted if it is a string, if it is a variable then
don't quote it. Notice also the double quotes
"some_method(param='Test')"
Dan
Stuart Foster wrote:
>
> I have a DTML method that is called from a document. I need to pass a value
> to it like a parameter would be passed to a
enclose the expression in quotes and you're happy:
phil
*** REPLY SEPARATOR ***
On 11.09.2000 at 09:01 Stuart Foster wrote:
>I have a DTML method that is called from a document. I need to pass a value
>to it like a parameter would be passed to a function.
>
>
>
>Thanks
>
>
>
> I have a DTML method that is called from a document. I need to pass a
value
> to it like a parameter would be passed to a function.
>
>
try something like:
or:
for a longer expose see the faq:
http://zdp.zope.org/projects/zfaq/faq/DTML/955111628
hth
Rik
__
11 matches
Mail list logo