[Zope] return a value from python script

S.Morris s.morris@bangor.ac.uk
Tue, 05 Jun 2001 18:53:40 +0100


Hi,

I have a master detail form which is sent to a python script. The detail
part of the form uses the records converters. The python script works ok
and the records are updated in a MySQL database.

   #contact

   ----- inserts master record -----
   context.StaffInsertMethod()
   
   ----- inserts detail records -----
   for x in contact:
      name = x['name']
      job = x['job']
      context.ContactInsertMethod(name=name, job=job)

   return 'ok'

How can I respond to the 'ok' that is returned in a DTML document? Calling
the script from a DTML document returns exactly the same thing as calling
the script directly from the form.
-- 
------------ 
S.Morris