Wednesday, January 24, 2007

form validation

One of the nice things about Traits UI was that once you described the data, the validation of user input took care of itself. In my new Traits UI-less world, I'll have to find another way to do that. Being lazy, I googled around for existing libraries. Formencode does this for html and isn't tied to html, but I haven't found examples using pygtk. It's also supposed to be used by sqlobject? Maybe I can rely on sqlobject exceptions to do the work for me? Another possibility is kiwi, which actually serves as an MVC framework of sorts for pygtk. I will say I'm loathe to include more dependencies, but kiwi doesn't scare me that much.

No comments: