[Zope] zpt calls openflow?

nagendra prasad nagendra prasad" <tn_prasad@rediffmail.com
18 Jun 2003 14:00:44 -0000


 This is a multipart mime message


--Next_1055944844---0-202.54.124.130-28050
Content-type: text/html;
	charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<P>=0Ahi,<BR>=0Ai have set up plone &amp; zope in linux.<BR>=0AAll these da=
ys i have used formulator + DTML(to design forms )&amp; dtml alks to openfl=
ow &amp; that works fine.<BR>=0AAs i was not able to make dtml call zpt( as=
 my dtml is currently talking to openflow--didn't want to change the sequen=
ce), i had to go with zpt talking to openflow.<BR>=0Ais that possible , plz=
 help me, how do i do this.<BR>=0ABelow mentioned is what i have done.<BR>=
=0Athis is my macros in zpt.here this form action points to dtml script.<BR=
>=0A-----------------------------------------------------------------<BR>=
=0A&lt;tr tal:define=3D&quot;startdate request/startdate|nothing&quot;&gt;<=
BR>=0A&nbsp; &nbsp; &lt;th align=3D&quot;left&quot;&gt;<BR>=0A&nbsp; &nbsp;=
  &lt;font size=3D5&gt;&lt;font face=3D&quot;verdana&quot;&gt;&lt;b&gt;<BR>=
=0A&nbsp; &nbsp; &nbsp; Start Date:<BR>=0A&nbsp; &nbsp;  &lt;/b&gt;&lt;/fon=
t&gt;&lt;/font&gt;<BR>=0A&nbsp; &nbsp; &lt;/th&gt;<BR>=0A&nbsp; &nbsp; &lt;=
td&gt;&lt;input type=3D&quot;text&quot; name=3D&quot;startdate&quot;<BR>=0A=
&nbsp; &nbsp; &nbsp; &nbsp; tal:replace=3D&quot;structure python:form.start=
date.render(startdate)&quot; &gt;<BR>=0A&nbsp; &nbsp; &lt;/td&gt;<BR>=0A&nb=
sp; &lt;/tr&gt;<BR>=0A-----------------------------------------------------=
------------<BR>=0A<BR>=0Athis is my dtml script(talks to openflow) that tr=
ies to call zpt<BR>=0A-----------------------------------------------------=
-----<BR>=0A&lt;dtml-var standard_html_header&gt;<BR>=0A&lt;h2&gt;&lt;dtml-=
var document_title&gt;&lt;/h2&gt;<BR>=0A&lt;p&gt;<BR>=0A&lt;dtml-let instan=
ce=3D&quot;workflow.addInstance('request',<BR>=0A&nbsp; &nbsp; AUTHENTICATE=
D_USER.getUserName(),<BR>=0A&nbsp;  'no comment',<BR>=0A&nbsp;  'Request fo=
r Grant by ' +&nbsp; AUTHENTICATED_USER.getUserName(),<BR>=0A&nbsp; &nbsp; =
activation=3D0)&quot; instobj=3D&quot;_.getattr(workflow,instance)&quot;&gt=
;<BR>=0A&lt;dtml-call &quot;instobj.manage_addProperty('startdate', startda=
te, 'string')&quot;&gt;<BR>=0A&lt;dtml-call &quot;workflow.startInstance(in=
stance)&quot;&gt;<BR>=0A&lt;/dtml-let&gt;<BR>=0A&lt;/p&gt;<BR>=0A&lt;p&gt;<=
BR>=0A&lt;a href=3D&quot;index_html&quot;&gt;To frontpage&lt;/a&gt;<BR>=0A&=
lt;/p&gt;<BR>=0A&lt;dtml-var standard_html_footer&gt;<BR>=0A---------------=
---------------------------------------------------------<BR>=0Ait always g=
ives an error like<BR>=0AError Type<BR>=0ANameError<BR>=0AError Value<BR>=
=0Aname 'startdate' is not defined<BR>=0A<BR>=0Awhat is the problem<BR>=0AT=
hanks<BR>=0APrasad<BR>=0A=0A</P>=0A<br><br>=0A<a href=3D"http://www.herohon=
da.com/karizma?rediffmail" target=3D"_blank"><IMG SRC=3D"http://ads.rediff.=
com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/inbox.htm@Bottom" bord=
er=3D0></a>=0A
--Next_1055944844---0-202.54.124.130-28050
Content-type: text/plain;
	charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

hi,=0Ai have set up plone & zope in linux.=0AAll these days i have used for=
mulator + DTML(to design forms )& dtml alks to openflow & that works fine.=
=0AAs 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 tal=
king to openflow.=0Ais that possible , plz help me, how do i do this.=0ABel=
ow mentioned is what i have done.=0Athis is my macros in zpt.here this form=
 action points to dtml script.=0A------------------------------------------=
-----------------------=0A<tr tal:define=3D"startdate request/startdate|not=
hing">=0A    <th align=3D"left">=0A     <font size=3D5><font face=3D"verdan=
a"><b>=0A      Start Date:=0A     </b></font></font>=0A    </th>=0A    <td>=
<input type=3D"text" name=3D"startdate"=0A        tal:replace=3D"structure =
python:form.startdate.render(startdate)" >=0A    </td>=0A  </tr>=0A--------=
---------------------------------------------------------=0A=0Athis is my d=
tml script(talks to openflow) that tries to call zpt=0A--------------------=
--------------------------------------=0A<dtml-var standard_html_header>=0A=
<h2><dtml-var document_title></h2>=0A<p>=0A<dtml-let instance=3D"workflow.a=
ddInstance('request',=0A    AUTHENTICATED_USER.getUserName(),=0A   'no comm=
ent',=0A   'Request for Grant by ' +  AUTHENTICATED_USER.getUserName(),=0A =
   activation=3D0)" instobj=3D"_.getattr(workflow,instance)">=0A<dtml-call =
"instobj.manage_addProperty('startdate', startdate, 'string')">=0A<dtml-cal=
l "workflow.startInstance(instance)">=0A</dtml-let>=0A</p>=0A<p>=0A<a href=
=3D"index_html">To frontpage</a>=0A</p>=0A<dtml-var standard_html_footer>=
=0A------------------------------------------------------------------------=
=0Ait always gives an error like=0AError Type=0ANameError=0AError Value=0An=
ame 'startdate' is not defined=0A=0Awhat is the problem=0AThanks=0APrasad=0A
--Next_1055944844---0-202.54.124.130-28050--