Re: [Zope] Passing parameters using DTML

2005-06-20 Thread John Poltorak
On Fri, Jun 17, 2005 at 05:39:23PM -0500, J Cameron Cooper wrote: I'm assuming the above line comes from a page template. You neglected to mention what the calling DTML looks like, but I *guess* that it was something like this: dtml-var some_template(parm='ABC') yes? no? This is what

[Zope] Passing parameters using DTML

2005-06-17 Thread John Poltorak
Can someone provide an example of passing parameters using DTML? I'm sure this must be doable, but don't see an example in the Zope Book. I assume it would go something like dtml-var var1 parm1 parm2 but how would var1 pick up parm1 parm2? -- John

Re: [Zope] Passing parameters using DTML

2005-06-17 Thread Tino Wildenhain
Am Freitag, den 17.06.2005, 09:44 +0100 schrieb John Poltorak: Can someone provide an example of passing parameters using DTML? I'm sure this must be doable, but don't see an example in the Zope Book. I assume it would go something like dtml-var var1 parm1 parm2 but how would var1

Re: [Zope] Passing parameters using DTML

2005-06-17 Thread Dieter Maurer
Tino Wildenhain wrote at 2005-6-17 10:57 +0200: ... Not at all. You could either have tried it out ;) Or looked at the DTML documentation in the Zope book *wink* ;) dtml-var expr=somemethod(parm1=value1,parm2=value2) Be warned: this is likely to cause loss of the namespace. Do not forget to

Re: [Zope] Passing parameters using DTML

2005-06-17 Thread Tino Wildenhain
Am Freitag, den 17.06.2005, 19:09 +0200 schrieb Dieter Maurer: Tino Wildenhain wrote at 2005-6-17 10:57 +0200: ... Not at all. You could either have tried it out ;) Or looked at the DTML documentation in the Zope book *wink* ;) dtml-var expr=somemethod(parm1=value1,parm2=value2) Be

Re: [Zope] Passing parameters using DTML

2005-06-17 Thread John Poltorak
On Fri, Jun 17, 2005 at 07:09:04PM +0200, Dieter Maurer wrote: Tino Wildenhain wrote at 2005-6-17 10:57 +0200: ... Not at all. You could either have tried it out ;) Or looked at the DTML documentation in the Zope book *wink* ;) dtml-var expr=somemethod(parm1=value1,parm2=value2) Be

Re: [Zope] Passing parameters using DTML

2005-06-17 Thread Andreas Jung
--On 17. Juni 2005 20:24:23 +0100 John Poltorak [EMAIL PROTECTED] wrote: Is there also something which explains how to call ZPTs from a DTML object? Do you have a good reason for mixing ZPT and DTML? -aj pgphTjDYprDSb.pgp Description: PGP signature

Re: [Zope] Passing parameters using DTML

2005-06-17 Thread John Poltorak
On Fri, Jun 17, 2005 at 09:31:44PM +0200, Andreas Jung wrote: --On 17. Juni 2005 20:24:23 +0100 John Poltorak [EMAIL PROTECTED] wrote: Is there also something which explains how to call ZPTs from a DTML object? Do you have a good reason for mixing ZPT and DTML? Yes. I have a

Re: [Zope] Passing parameters using DTML

2005-06-17 Thread Andreas Jung
--On 17. Juni 2005 20:40:14 +0100 John Poltorak [EMAIL PROTECTED] wrote: spending a few months learning something entirely different which only gurus can handle. This refers to what? -aj pgpRdMhEJ5aC2.pgp Description: PGP signature ___ Zope

Re: [Zope] Passing parameters using DTML

2005-06-17 Thread J Cameron Cooper
John Poltorak wrote: On Fri, Jun 17, 2005 at 07:09:04PM +0200, Dieter Maurer wrote: Tino Wildenhain wrote at 2005-6-17 10:57 +0200: ... Not at all. You could either have tried it out ;) Or looked at the DTML documentation in the Zope book *wink* ;) dtml-var

Re: [Zope] Passing parameters using DTML

2005-06-17 Thread Paul Winkler
On Fri, Jun 17, 2005 at 08:24:23PM +0100, John Poltorak wrote: Is there also something which explains how to call ZPTs from a DTML object? I'm unable to pick up a passed parameter. This is what I've conjured up:- python:here.lib.parse_file(file=context.options['parm'],sepr=',',clone=1)

Re: [Zope] Passing parameters using DTML

2005-06-17 Thread John Poltorak
On Fri, Jun 17, 2005 at 05:07:32PM -0400, Paul Winkler wrote: On Fri, Jun 17, 2005 at 08:24:23PM +0100, John Poltorak wrote: Is there also something which explains how to call ZPTs from a DTML object? I'm unable to pick up a passed parameter. This is what I've conjured up:-

Re: [Zope] Passing parameters using DTML

2005-06-17 Thread J Cameron Cooper
John Poltorak wrote: On Fri, Jun 17, 2005 at 05:07:32PM -0400, Paul Winkler wrote: On Fri, Jun 17, 2005 at 08:24:23PM +0100, John Poltorak wrote: Is there also something which explains how to call ZPTs from a DTML object? I'm unable to pick up a passed parameter. This is what I've

Re: [Zope] Passing parameters using DTML

2005-06-17 Thread Paul Winkler
On Fri, Jun 17, 2005 at 11:25:30PM +0100, John Poltorak wrote: This is what I have:- dtml-var expr=testlist(parm='myobjectname') I wish to get 'myobjectname' into this line in 'testlist' which is marked with * python:here.parse_file(file=context.**,sepr=',',clone=1)