Alberto Valverde <[EMAIL PROTECTED]> writes:

3) I need to implement a way to signal all root widgets what template
language they're displaying on. The current implementation needs  manually
setting toscawidgets.framework.default_view in each request.  That is fine for
Pylons as the framework object only lives for one  request... but it's
problematic on TG 1.0b2 which keeps the same  framework instance for the whole
app's lifetime.

4) Some other minor tweaks here and there... (grep recursively for  "XXX" to
find out)

I'd like to see the possibility to send a complementary pair of widgets so
that we can enclose other elements within them.  This would be useful for,
e.g., the Tabber widget:

   class MyNewMegaFormWidgets(widgets.WidgetsList):
         #
         # widgets outside of tabs here
         #
         tabber_start = widgets.StartElement(
             template = '<div class="tabber">')
         tabbertab_start = widgets.StartElement(
             template = '<div class="tabbertab">')
# # Other widgets inside this tab here
         #
         tabbertab_end = widgets.EndElement(
             template = '</div>')
         tabbertab_start = widgets.StartElement(
             template = '<div class="tabbertab">')
# # Other widgets inside this tab here
         #
         tabbertab_end = widgets.EndElement(
             template = '</div>')
         tabber_end = widgets.EndElement(
             template = '</div>')
         #
         # widgets outside of tabs here
         #


If I were implementing that I'd also make a requirement that the names be
"<something>_start" and that there's always a "<something>_end".  The
generated names (id, classes, whatever) would use only the "<something>" part,
without "start" or "end".
This can't be easily done with Kid (can it be done?) but I believe that Genshi
would allow that more easily...
--
Jorge Godoy      <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to