[Zope] Add document and change properties at once?

Dieter Maurer dieter@handshake.de
Tue, 3 Apr 2001 21:17:44 +0200 (CEST)


Paul Winkler writes:
 > Is there a way to make a form that creates a DTML document and
 > creates several properties of that document immediately?
Sure:

	<form action="customAddDocument" ....>
	....
	</form>


customAddDocument:

  <dtml-call "manage_addDocument(id,title)">
     <!-- assuming "id" and "title" are in the REQUEST -->
  <dtml-with "_.getitem(id)">
    <dtml-call "manage_addProperty(...)">
    ....
  </dtml-with>


More information: embedded Zope online help -> API-Reference ->
  PropertyManager, ObjectManager, DTMLDocument.



Dieter