[Zope] how to use the document object in a script

Wim Bekker wim@dv-rec.com
Tue, 13 May 2003 17:08:42 +0200


Wrestling with the ZopeBook (ScriptingZope.stx), I'm trying to call a script
from a DTML document to return eq the title for the document (as learning
curve).

The document has:
<form action="myScript" method="POST>
<input type="submit">
</form>

The 'myScript' has:
Return context.title

The result is the title for the folder where the document is in. I'm
expecting the title for the document itself. 

Context always seems to be the folder I'm working on. How do I get the
object (document)?

Wim