#653: Create a tab widget
-------------------------+--------------------------------------------------
 Reporter:  kevin        |        Owner:  anonymous
     Type:  enhancement  |       Status:  new      
 Priority:  normal       |    Milestone:           
Component:  Widgets      |      Version:           
 Severity:  normal       |   Resolution:           
 Keywords:               |  
-------------------------+--------------------------------------------------
Comment (by alberto):

 {{{
 class StringContent(Widget):
     template_vars = ["str_content"]
     template = """<div py:replace="str_content" /> """

 def update_data(.....):
     ...
     if isinstance(d["tab_content"], basestring):
         d["tab_content"] = StringContent(str_content=d["tab_content"])
     ...
 }}}

 I *think* this should be enough (beware, untested, might even trash your
 hard drive ;)

 Reagarding the content property, I wasn't aware of this... you wont go to
 bed without learning new things :)

 Regarding the docs, you're absolutely right! When #613 is done and the API
 finally settles down maybe we (all the widget developers) should sit
 together and write a "Widget's Doc & Best-Practices" page... till then,
 the Widget sources should fill this gap, that's why we're so picky about
 the style ;)

 Thanks again, Alberto

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/653>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Tickets" 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-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to