Re: [Zope-dev] Recursively adding ZClasses (continued)
Thanks a lot Jason, I'll try it (though i'd swear I tried something very much alike)
This currently adds recursive ZClasses for me. All ZClasses are on the top level of the Product, no nesting:
<dtml-with "manage_addProduct['ZGL']"> <dtml-with "ComponentClass.createInObjectManager(_.getitem('unique_id', 1), REQUEST)">
hm, what is the 1 in the getitem argument doing there? Never used that before...
I cut a few things out that didn't have to do with the recursing, but you bet the general picture.
Yes I bet it (sorry couldn't resist) thanks again, and i'll let you know if it works. It would be highly inconsistent if it would work from one product folder (a different from the current one) and not for the other (the current). So I think this deserves some more digging. Rik
Rik Hoekstra writes:
Thanks a lot Jason,
I'll try it (though i'd swear I tried something very much alike)
This currently adds recursive ZClasses for me. All ZClasses are on the top level of the Product, no nesting:
<dtml-with "manage_addProduct['ZGL']"> <dtml-with "ComponentClass.createInObjectManager(_.getitem('unique_id', 1), REQUEST)">
hm, what is the 1 in the getitem argument doing there? Never used that before...
I am using it to render the document, not just get me the code. The document is a DTMLMethod that renders a Zope install unique id based on the time.
I cut a few things out that didn't have to do with the recursing, but you bet the general picture.
Yes I bet it (sorry couldn't resist)
Yeah, like this is the most complex DTML you've ever seen. ;)
thanks again, and i'll let you know if it works. It would be highly inconsistent if it would work from one product folder (a different from the current one) and not for the other (the current). So I think this deserves some more digging.
But it wouldn't totally suprize me. 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.
participants (2)
-
Jason Spisak -
Rik Hoekstra