- These days, users require nicer, more featureful forms. Things like WYSIWYG widgets, date picker widgets, and autocompletion are becoming ubiquitous.
- Conceptually, this is part of the view layer (i.e. the V in MVC).
- You are responsible for passing a value into the widget.
- They are using FormEncode for validation.
- The library knows how to aggregate individual widgets into a form.
- It's easy to package a widget into a Python egg. The widgets installed are discoverable because they provide a setuptools entry point.
- Unlike Dojo widgets, the emphasis is on packaging things together from the server's point of view. (I'm a little unclear about the correct overlap between these two projects. I get the feeling that he was hand waving a bit. However, it's clear that packaging widgets into Python eggs is helpful.)
- They're using a templating engine (Kid?) for the HTML, but they're thinking of getting rid of that, per Ben Bangert.
- There is a Tosca Widgets browser that lets you play around with all of the widgets you have installed.
Wednesday, February 28, 2007
PyCon: The Wonderful World of Widgets for the Web
This was a talk on Tosca Widgets by Kevin Dangoor, the leader of TurboGears. Overall, Kevin's a pretty charismatic guy, and the talk was well received.