[Zope] Newbie ZClass confusion

toman toman@marge.cyber-dyne.com
Tue, 03 Dec 2002 16:59:16 -0800


Hi,
I'm a little confused about ZClass construction.
I have a product 'Lucy' which has folderish ZClasses 'bob' and 'bill' in 
it. Each instance of a bob should be constructed with a bill named 
'Willliam' in it.
The default DTML method bob_add has the following snippet:

<dtml-with "bob.createInObjectManager(REQUEST['id'], REQUEST)">

   <dtml-comment>
...

   </dtml-comment>

</dtml-with>

Where and how do I construct the bill ? My naive thought
was to put a <dtml-call "bill_add(id='William')"> in the
dtml-with statement, but that doesn't seem to work. Suggestions?
I've read 'The Zope Book' a couple times, looked through ZopeLabs and 
didn't see anything like this except for adding a folder, which isn't 
that helpful because they're a standard class and have various 
management methods defined for them. Ideas?
	
				J. Toman