On Wednesday 27 March 2002 10:48, Bobby Kuzma wrote:
> Sorry for not including that:
> Webware version: 0.6
> Python version: 2.2
>
> This script is called via an application().forward command from
> another script. The syntax error seems to pop up on the last line
> of code in the script, before the script can execute.
>
> from SecurePage import SecurePage
> from casedbHandler import dbBasic
> class commitNarrative(SecurePage):
>
> def awake(self,trans):
> SecurePage.awake(self,trans)
> request = self.request()
> datasource = dbBasic('caseman','postgres','')
> print "Report Date: %s, ID: %s" %
> (request.field('reportdate'),request.field('id'))
> datasource.st.execute('''update narrative set reportdate='%s'
> where narrativeid=%s''' %
> request.field('reportdate'),request.field('id')
> datasource.closedb()
What happens when you replace the '''s with """s?
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss