[Zope-DB] Zope page template question

Charlie Clark charlie at egenix.com
Wed Aug 25 15:08:51 EDT 2004


Laura,

this is still the wrong list for PageTemplate enquiries. Please sign up to 
zpt at zope.org.

What do you want to render on the page? This is what PageTemplates are used 
for not really processing business logic. But I'm not surprised you're 
getting an error: there are at least two syntax errors in there

<a tal:attributes="href python: 'pc_form2?SystemNetName=' +
str(SystemNetName); python: here.refreshTables()">refresh</a>

But this will probably still cause problems as the second attribute being 
defined is now without a name.

It looks like you haven't included enough code for us to see the problem.

Charlie


On 2004-08-25 at 20:27:51 [+0200], Laura McCord 
<Laura.McCord at doucet-austin.com> wrote:
> I am trying to create a link that will execute a python script. It
> almost works however, I have one flaw.
> 
> on my frontpage I have a link that passes a value which determines which
> information to pull from my sql server database and navigates to the
> second page. Once I am at the second page I have another link, refresh,
> that executes a python script that updates the database. But, I noticed
> on the frontpage that the python script also executes once the frontpage
> link is clicked on.
> 
> Here is my code to call the refresh feature:
> <a tal:attributes="href python: 'pc_form2?SystemNetName=' +
> str(SystemNetName); python here/refreshTables">refresh</a>
> 
> 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.


More information about the Zope-DB mailing list