2 from turbogears import url
3 from turbogears import controllers
6 def __init__(self, controller):
7 # Armo la lista de subcontrollers
9 for i in controller.__dict__:
10 if isinstance(getattr(controller, i),controllers.Controller):
18 <select OnChange="window.location=this.options[this.selectedIndex].value;">
25 s = s + u"""<option value="%s">%s</option>" """ % (url('/' + i), i.capitalize().replace('_', ' '))