[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 & zope in linux.<BR>=0AAll these da=
ys i have used formulator + DTML(to design forms )& dtml alks to openfl=
ow & 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<tr tal:define=3D"startdate request/startdate|nothing"><=
BR>=0A <th align=3D"left"><BR>=0A =
<font size=3D5><font face=3D"verdana"><b><BR>=
=0A Start Date:<BR>=0A </b></fon=
t></font><BR>=0A </th><BR>=0A <=
td><input type=3D"text" name=3D"startdate"<BR>=0A=
tal:replace=3D"structure python:form.start=
date.render(startdate)" ><BR>=0A </td><BR>=0A&nb=
sp; </tr><BR>=0A-----------------------------------------------------=
------------<BR>=0A<BR>=0Athis is my dtml script(talks to openflow) that tr=
ies to call zpt<BR>=0A-----------------------------------------------------=
-----<BR>=0A<dtml-var standard_html_header><BR>=0A<h2><dtml-=
var document_title></h2><BR>=0A<p><BR>=0A<dtml-let instan=
ce=3D"workflow.addInstance('request',<BR>=0A AUTHENTICATE=
D_USER.getUserName(),<BR>=0A 'no comment',<BR>=0A 'Request fo=
r Grant by ' + AUTHENTICATED_USER.getUserName(),<BR>=0A =
activation=3D0)" instobj=3D"_.getattr(workflow,instance)">=
;<BR>=0A<dtml-call "instobj.manage_addProperty('startdate', startda=
te, 'string')"><BR>=0A<dtml-call "workflow.startInstance(in=
stance)"><BR>=0A</dtml-let><BR>=0A</p><BR>=0A<p><=
BR>=0A<a href=3D"index_html">To frontpage</a><BR>=0A&=
lt;/p><BR>=0A<dtml-var standard_html_footer><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--