Re: Programmatic parents?
"Jonathan Ellis" <[email protected]> Mon, 07 Aug 2006 15:50:58 -0700
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 07 Aug 2006 21:43:20 +0200, "Iwan Vosloo" <[email protected]> said: > Hi, > > On Mon, 2006-08-07 at 06:36 -0700, Jonathan Ellis wrote: > > On Mon, 07 Aug 2006 15:25:59 +0200, "Iwan Vosloo" <[email protected]> said: > > > The best solution I've been able to think of is to call > > > spyce.spyceFileHandler once to render the child, passing it a > > > spyceconfig in which I give the filename of the parent as the > > > 'defaultparent'. > > > > What are you trying to accomplish? You just want to avoid having > > to type spy:parent, or is it something more than that? > > Its more. Specifying the tag is not a big deal. Children are rendered > with different parents, and they don't know when they will be rendered > 'inside' which parent. Different parents need different parameters to > be passed for them to render correctly... So, I want the children NOT > to know what needs to be passed to the parent in the spy:parent tag. > The caller of spyce.spyceFileHandler knows all this stuff (which parent > + which parameters to pass). You have strange requirements. :) But this should actually be pretty easy. Just look at how spyce.py:spyceProcess uses self._parent, and forge the appropriate parent data appropriately before your handler calls into that. -Jonathan -- C++ is history repeated as tragedy. Java is history repeated as farce. --Scott McKay ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642