Where/how are Folders built?
Hello: I'm posting this again-- still in search of some clues. I'm creating a folderish object. When a new instance of this object is created, how can I get it to build some other objects inside itself? (mostly dtml-documents). I want this to be pretty much just like the folder object- that is, when you create a folder for instance, you can have it create a user folder at the same time. Where can see how this is being done? thanks for pointers, andy diller
Andrew Diller writes:
Hello:
I'm posting this again-- still in search of some clues.
I'm creating a folderish object.
Is ita ZClass that inherits "Folder" or "ObjectManager"?
When a new instance of this object is created, how can I get it to build some other objects inside itself? (mostly dtml-documents).
<dtml-with "MyFolderishClass.createInObjectManager(REQUEST['id'], REQUEST)"> <dtml-call "propertysheets.properties.manage_editProperties(REQUEST)"> <dtml-call "manage_addDTMLMethod('myId', 'MyTitle' , REQUEST['Mycontent'])"> </dtml-with> All my best, Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
on 2000-04-25 7:43 PM, Jason Spisak at 444@hiretechs.com dribbled:
Andrew Diller writes:
Hello:
I'm posting this again-- still in search of some clues.
I'm creating a folderish object.
Is ita ZClass that inherits "Folder" or "ObjectManager"?
Thanks for the answer. It inherits Folder. I don't need it to contain other classes, just other objects. I still have a question about _where_ your example code would go---
When a new instance of this object is created, how can I get it to build some other objects inside itself? (mostly dtml-documents).
<dtml-with "MyFolderishClass.createInObjectManager(REQUEST['id'], REQUEST)"> <dtml-call "propertysheets.properties.manage_editProperties(REQUEST)"> <dtml-call "manage_addDTMLMethod('myId', 'MyTitle' , REQUEST['Mycontent'])"> </dtml-with>
Where would this code go - i.e: - as new method in my Zclass - into one of the Factory Objects for the Product? thanks, andy
Andrew:
Thanks for the answer.
You bet.
I still have a question about _where_ your example code would go---
Put it in the method that creates you 'folerishZClass' instance. If you are using the dfault that gets created when you make a ZClass, then it's the 'folderishZclass_add' method in the Product.
<dtml-with "MyFolderishClass.createInObjectManager(REQUEST['id'], REQUEST)"> <dtml-call "propertysheets.properties.manage_editProperties(REQUEST)"> <dtml-call "manage_addDTMLMethod('myId', 'MyTitle' , REQUEST['Mycontent'])"> </dtml-with>
Does that clear it up a bit? Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
participants (2)
-
Andrew Diller -
Jason Spisak