Re: [Zope] Decorator pattern

2001-01-17 Thread Chris Withers

> I was thinking that I could change  to something
> like:
> blah
>
> Then each level would define body_tag_guts as a call to its parent's
> body_tag_guts and tack on its stuff... but I don't know how to do that
> 

Try this, if body_tag_guts is a DTML method:


cheers,

Chris


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Decorator pattern

2001-01-17 Thread Tom Jenkins

Hello folks,
I have a situation where as I go down my hierarchy I need to modify the
 tag.

Assume this structure:
/
/level1
/level1/level2
/level1/level2/level3

  At level 1 the  tag would be like:

and at level 2 the  tag would have the color setting at level1
plus additional information:

and at level 3 the  tag would be enhanced further:


I was thinking that I could change  to something
like:
blah  

Then each level would define body_tag_guts as a call to its parent's
body_tag_guts and tack on its stuff... but I don't know how to do that


Am I going down the right path here or is there a better way?

Tom Jenkins
devIS - Development InfoStructure
http://www.devis.com


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )