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

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

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. > > try something like: or: for a longer expose see the faq: http://zdp.zope.org/projects/zfaq/faq/DTML/955111628 hth Rik __

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: 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 > > >

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

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

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. > > That does not look too bad, but you forgot the "..." around the call. You should include two positional parameters as well:

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

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: > > 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

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

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

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: > > 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

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 form is less likely to have errors like forgetting th

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: > > > > > 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.

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 t