[ZPT] Globals from calling script

Philip Kilner phil at xfr.co.uk
Fri Dec 19 08:16:50 EST 2003


Hi List,

I have a script which is calling a ZPT containing a form. The form 
submits to ".", which I understand to mean "me", and formulator checks 
it. If there are no errors, the script calls another ZPT. If there are 
errors, the script puts them in a dictionary and re-calls the first ZPT.

My problem is that I can't figure out how to display my dictionary in 
the ZPT - whatever I try, I get either a "key error" or a "global not 
defined".

The ZPT does not seem to have access to the same name space as the 
script, and if I use tal:define global I seem to be wiping out my 
dictionary. I'd naively though that by calling the ZPT from the script I 
had a single "environment". The alternate strategy I have tried is to 
call the script as the ZPT loads, but if I do this I can't figure out 
how to exit the form and return to the top-level script.

Can anyone give a clue?

FWIW, at this point I would rather be able to access Formulators errors 
directly from the ZPT, and would rather have my logic in the /calling/ 
script than a /called/ script - is this possible?

-- 

Regards,

PhilK

Email: phil at xfr.co.uk / Voicemail & Facsimile: 07092 070518

"the symbols of the divine show up in our world initially at the trash 
stratum." Philip K Dick






More information about the ZPT mailing list