[Zope3-dev] Re: Script (Python), was Re: [Zope-dev] Re: Zope 3 Newsletter: Issue 10

Sidnei da Silva sidnei at plone.org
Mon Sep 8 14:11:31 EDT 2003


| For views/widgets a bit more thinking about a widget-tree like in GUI
| toolkits would be useful. This could be used for more than just
| introspection, but introspection use is already very useful.
| 
| I'm not sure whether the current page template model lends itself to this.
| One could introspect macros, but I don't know how widgets currently get
| called onto the screen exactly.

Currently, for the edit and add views, there is something like this:

<div tal:repeat="widget view/widgets">
  <span tal:replace="widget/row" />
</div>

Where row is a method of the widget that returns a chunk of HTML. For
making this introspectable, I guess it would be needed to make the
widgets return a macro, that is then used.

-- 
Sidnei da Silva <sidnei at plone.org>
dreamcatching :: making your dreams come true
http://dreamcatcher.homeunix.org

Marvelous!  The super-user's going to boot me!
What a finely tuned response to the situation!



More information about the Zope3-dev mailing list