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
Dieter Maurer
You should include two positional parameters as well:
dtml-var "some_method(_.None,_,param=value)"
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.
dtml-let
] [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 that is called from a document. I need to pass a
value
: Zope List
Subject: Re: [Zope] How to Pass values to a DTML method ??
Dieter Maurer
You should include two positional parameters as well:
dtml-var "some_method(_.None,_,param=value)"
I've recently had explained to me a way that is more robust, and possibly
less confusing, than th
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 dtml-let form is
less likely to have errors like
Stuart Foster writes:
Dieter Maurer wrote:
You should include two positional parameters as well:
dtml-var "some_method(_.None,_,param=value)"
This is the way I had to do it what's up with the two extra params?
DTML objects use the DocumentTemplate's (--
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.
dtml-var some_method(param=value)
try something like:
dtml-var "method_name(_.None, _, param=value)"
or:
dtml-var "method_name(_.None, _, arg1=value1,
enclose the expression in quotes and you're happy:
dtml-var "some_method(param=value)"
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
dtml-var "some_method(param='Test')"
'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
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.
dtml-var some_method(param=value)
That does not look too bad, but you forgot the "..." around the call.
You should include two
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 DTML
11 matches
Mail list logo