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
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML
> 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
__
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
>
>
>
'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
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:
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
> 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
--
> 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
: 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: 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
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.
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
12 matches
Mail list logo