Lobby: Renderable ZClasses
Kevin Howe wrote a version of my ``Renderable base ZClass'' which plugs directly into the ZClass system. Background info: a Renderable ZClass is one with control of what happens when you <dtml-var some_object_of_this_class>. Kevin's version is really cool, but it patches stuff outside Products/Renderable, so I won't distribute it as the ``official'' Renderable Product. Still, I'd like to lobby for its inclusion in Zope itself. How it works: when you create your ZClass, you select ``Renderable'' as one of the base classes. Then (in Kevin's version) in the Basic tab you select some method to be executed when people <dtml-var some_object_of_this_class>. My BannerAd Product and Kevin's ActiveImage Product both use Renderable. AFAIK, both work with my version and Kevin's. []s, |alo +---- -- I am Lalo of deB-org. You will be freed. Resistance is futile. http://www.webcom.com/lalo mailto:lalo@webcom.com pgp key in the web page Debian GNU/Linux --- http://www.debian.org Brazil of Darkness -- http://zope.gf.com.br/BroDar
Duh, URL would have helped :-) http://www.zope.org/Members/admin/ []s, |alo +---- -- I am Lalo of deB-org. You will be freed. Resistance is futile. http://www.webcom.com/lalo mailto:lalo@webcom.com pgp key in the web page Debian GNU/Linux --- http://www.debian.org Brazil of Darkness -- http://zope.gf.com.br/BroDar
On Fri, 26 Nov 1999, Lalo Martins wrote:
How it works: when you create your ZClass, you select ``Renderable'' as one of the base classes. Then (in Kevin's version) in the Basic tab you select some method to be executed when people <dtml-var some_object_of_this_class>.
Are there any advantages to using it rather than just having index_html call the method you want? -- ___ // Zen (alias Stuart Bishop) Work: zen@cs.rmit.edu.au // E N Senior Systems Alchemist Play: zen@shangri-la.dropbear.id.au //__ Computer Science, RMIT WWW: http://www.cs.rmit.edu.au/~zen
On Sat, Nov 27, 1999 at 03:31:56PM +1100, Stuart 'Zen' Bishop wrote:
On Fri, 26 Nov 1999, Lalo Martins wrote:
How it works: when you create your ZClass, you select ``Renderable'' as one of the base classes. Then (in Kevin's version) in the Basic tab you select some method to be executed when people <dtml-var some_object_of_this_class>.
Are there any advantages to using it rather than just having index_html call the method you want?
index_html doesn't get called when you <dtml-var your_object>. []s, |alo +---- -- I am Lalo of deB-org. You will be freed. Resistance is futile. http://www.webcom.com/lalo mailto:lalo@webcom.com pgp key in the web page Debian GNU/Linux --- http://www.debian.org Brazil of Darkness -- http://zope.gf.com.br/BroDar
participants (2)
-
Lalo Martins -
Stuart 'Zen' Bishop