[Zope] Help! Cascade initialization and acquisition
Anthony Baxter
Anthony Baxter <anthony@interlink.com.au>
Thu, 27 Jan 2000 12:06:05 +1100
Look at the SiteAccess product - it provides a hook that
allows you to do exactly this.
http://www.zope.org/Members/4am/SiteAccess
Anthony
>>> "Hung Jung Lu" wrote
> Hi,
>
> I guess this is a well-known problem and must have
> a well-known answer.
>
> I have subfolders inside folders and sub-subfolders
> inside subfolders, etc.
>
> I would like to store some initialization actions
> in a method called init_dtml inside some of these
> folders. (Much like constructors.) Now, when a user
> visit the sub-sub-...-subfolder, before displaying
> the index_html, I would like to invoke these init_dtml
> methods from the top of the folders down to the
> sub-sub-...-subfolder.
>
> All this is much like the cascade constructors in
> object-oriented programming languages: you invoke
> the base class constructor before the subclass
> constructor.
>
> The big question is: how do I do this? I have
> cracked my head without reaching a simple solution.
> Sometimes acquistion is just too evil. :)
>
> (Note that some of the folders may not have init_dtml.)
>
> regards,
>
> Hung Jung
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> 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 )
--
Anthony Baxter <anthony@interlink.com.au>
It's never too late to have a happy childhood.