[Zope] Call Z SQL Method from ZPT.
Geir Bækholt
lists at elvix.com
Thu Apr 15 04:33:27 EDT 2004
Jason,
Thursday, April 15, 2004, 6:41:43 AM, you wrote:
> Can I call a Z SQL Method from a ZPT?
> <h2 tal:content="python:
> container.sqlInsertProject(container.REQUEST.form['clientid'],
> container.REQUEST.form['projectid'],
> container.REQUEST.form['cdate'],
> container.REQUEST.form['pm'],
> container.REQUEST.form['user'])">Thanks!
> </h2>
Yes, but all arguments have to be explicitly named :
<h2 tal:content="python:
container.sqlInsertProject(clientid = container.REQUEST.form['clientid'],
projectid = container.REQUEST.form['projectid'],
cdate = container.REQUEST.form['cdate'],
pm = container.REQUEST.form['pm'],
user = user.getUserName())">
:)
--
__________________________________________________________________
Geir Bækholt · Interaction Engineer · Plone Solutions
Development · Training · Support · http://www.plonesolutions.com
__________________________________________________________________
More information about the Zope
mailing list