[ZPT] How to translate <dtml-call MyMethod> to ZPT

Jeff Peterson jpeterso@rangebroadband.com
Wed, 23 Jan 2002 12:05:25 -0600


You are correct sir, my bad.

About 50% of the time I forget the "here", then I have to go back and fix
it.  You had to serve as the error messages this time. :)

--
Jeffrey D. Peterson
Webmaster & Resident Standards Warrior
"The Trouble with doing anything right the first time is that nobody
appreciates how difficult it was."


> -----Original Message-----
> From: Evan Simpson [mailto:evan@zope.com]
> Sent: Wednesday, January 23, 2002 11:38 AM
> To: jpeterso@rangebroadband.com
> Cc: Damir Bartakovic; zpt@zope.org
> Subject: Re: [ZPT] How to translate <dtml-call MyMethod> to ZPT
>
>
> Jeff Peterson wrote:
> > Create a python script:
> >
> > doInsert:
> >
> > R = context.REQUEST
> >
> > if R.form.submit == 'Insert':
> >   context.InsertMethod(R)
> >   print 'Your data was inserted!'
> > else:
> >   print 'No Insert'
> >
> > return printed
>
> This is fine.
>
> > then in ZPT do:
> >
> > <div tal:content="python: doInsert()"/>Insert yes/no?</div>
>
> This should be:
>
> <span tal:content="here/doInsert">Insert yes/no?</span>
>
> Cheers,
>
> Evan @ Zope
>
>