[Zope] Re: [Zope-DB] Zope page template question
Dario Lopez-Kästen
dario at ita.chalmers.se
Thu Aug 26 01:53:30 EDT 2004
Laura McCord wrote:
> Here is my code to call the refresh feature:
> <a tal:attributes="href python: 'pc_form2?SystemNetName=' +
> str(SystemNetName); python here/refreshTables">refresh</a>
hm... are you sure you should not be doing this with normal forms
instead? Ie (wildly guessing, sorry for any ZPT mistakes):
<form action="pc_form2" method="POST>
<input name="SystemNetName" value="valuegoeshere">
</form>
and then in your pc_form2 script you call
context.refreshTables()
which is yet another script that does all the updating of your tables,
using ZSQL methods.
/dario
PS: have you read the Zope Book?
>
> I am thinking that because of tal:attributes the frontpage will execute
> because it calls the same link as the above example. So, how do I get
> the second page to only execute the code.
>
> Thanks,
> Laura
> _______________________________________________
> Zope-DB mailing list
> Zope-DB at zope.org
> http://mail.zope.org/mailman/listinfo/zope-db
--
-- -------------------------------------------------------------------
Dario Lopez-Kästen, IT Systems & Services Chalmers University of Tech.
More information about the Zope
mailing list