[Zope] PythonScript translation
Timothy Wilson
wilson@visi.com
Sat, 10 Mar 2001 15:48:17 -0600 (CST)
Hi everyone,
Here's a simple question for somebody:
The default add method for a ZClass I just created looks like this:
<HTML>
<HEAD><TITLE>Add SchoolMenuClass</TITLE></HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<dtml-with "SchoolMenuClass.createInObjectManager(REQUEST['id'], REQUEST)">
<dtml-call "propertysheets.Basic.manage_editProperties(REQUEST)">
<dtml-call reindex_object>
</dtml-with>
<dtml-if DestinationURL>
<dtml-call "RESPONSE.redirect(DestinationURL+'/manage_workspace')">
<dtml-else>
<dtml-call "RESPONSE.redirect(URL2+'/manage_workspace')">
</dtml-if>
</body></html>
This works fine, but I'd like to create an id and title based on the form
input without having the user worry about the format of the text. This is a
lot easier with Python than DTML.
So what would be the equivalent of the above DTML Method in a PythonScript?
-Tim
--
Tim Wilson | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN | | http://slashdot.org/
wilson@visi.com | <dtml-var pithy_quote> | http://linux.com/