Re: [Zope] How to Pass values to a DTML method ??

2000-09-13 Thread Dieter Maurer
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

Re: [Zope] How to Pass values to a DTML method ??

2000-09-12 Thread Evan Simpson
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

Re: [Zope] How to Pass values to a DTML method ??

2000-09-12 Thread Daniel Rusch
] [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

RE: [Zope] How to Pass values to a DTML method ??

2000-09-12 Thread Stuart Foster
: 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

Re: [Zope] How to Pass values to a DTML method ??

2000-09-12 Thread Evan Simpson
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

RE: [Zope] How to Pass values to a DTML method ??

2000-09-12 Thread Dieter Maurer
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 (--

Re: [Zope] How to Pass values to a DTML method ??

2000-09-11 Thread Rik Hoekstra
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,

Re: [Zope] How to Pass values to a DTML method ??

2000-09-11 Thread Philipp Auersperg
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

Re: [Zope] How to Pass values to a DTML method ??

2000-09-11 Thread Daniel Rusch
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

Re: [Zope] How to Pass values to a DTML method ??

2000-09-11 Thread Dieter Maurer
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

RE: [Zope] How to Pass values to a DTML method ??

2000-09-11 Thread Stuart Foster
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