[ZPT] How to translate <dtml-call MyMethod> to ZPT
Evan Simpson
evan@zope.com
Wed, 23 Jan 2002 12:38:16 -0500
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