[ZPT] zpt calls openflow?
nagendra prasad
tn_prasad at rediffmail.com
Wed Jun 18 13:10:25 EDT 2003
An HTML attachment was scrubbed...
URL: http://lists.zope.org/pipermail/zpt/attachments/20030618/edc79597/attachment.htm
-------------- next part --------------
hi,
i have set up plone & zope in linux.
All these days i have used formulator + DTML(to design forms )& dtml talks to openflow & that works fine.
As i was not able to make dtml call zpt( as my dtml is currently talking to openflow--didn't want to change the sequence), i had to go with zpt talking to openflow.
is that possible , plz help me, how do i do this.
Below mentioned is what i have done.
this is my macros in zpt.here this form action points to dtml script.
-----------------------------------------------------------------
<tr tal:define="startdate request/startdate|nothing">
<th align="left">
<font size=5><font face="verdana"><b>
Start Date:
</b></font></font>
</th>
<td><input type="text" name="startdate"
tal:replace="structure python:form.startdate.render(startdate)" />
</td>
</tr>
-----------------------------------------------------------------
this is my dtml script(talks to openflow) that tries to call zpt
----------------------------------------------------------
<dtml-var standard_html_header>
<h2><dtml-var document_title></h2>
<p>
<dtml-let instance="workflow.addInstance('request',
AUTHENTICATED_USER.getUserName(),
'no comment',
'Request for Grant by ' + AUTHENTICATED_USER.getUserName(),
activation=0)" instobj="_.getattr(workflow,instance)">
<dtml-call "instobj.manage_addProperty('startdate', startdate, 'string')">
<dtml-call "workflow.startInstance(instance)">
</dtml-let>
</p>
<p>
<a href="index_html">To frontpage</a>
</p>
<dtml-var standard_html_footer>
------------------------------------------------------------------------
it always gives an error like
Error Type
NameError
Error Value
name 'startdate' is not defined
what is the problem
Thanks
Prasad
More information about the ZPT
mailing list