[Zope] Implementation questions for a new project
Stephen Pitts
smpitts@midsouth.rr.com
Tue, 23 Nov 1999 00:08:54 -0600
> Now the questions> First, how can I create that same sort of
> construct?
Create a Product called ClassicProduct (in the Control Panel/Products),
then create a Z-Class to represent your ClassItem. You can add
properties, create property sheets for people to use to edit the data,
write methods for your class, the whole 9 yards, all from within Zope.
>Second, How do I fill it up with user-defined values? For
>example, in php, if I have it parse a form with the following html:
Here's an example:
-- inside a DTML method/document --
<form action="add_dtml_document">
Id: <input name="id"><br>
Title: <input name="title"><br>
</form>
-- in a DTML method/document called add_dtml_document --
<dtml-comment>Actually create the object</dtml-comment>
<dtml-with "Document.createInObjectManager(id, REQUEST)">
<dtml-comment>Set the title property</dtml-comment>
<dtml-call "manage_editProperties(REQUEST)">
</dtml-with>
<h1>Created document <dtml-var id> with title <dtml-var title></h1>
You could use the same technique to create an instance of any Z-Class in
the current folder.
--
Stephen Pitts
smpitts@midsouth.rr.com
webmaster - http://www.mschess.org