Lino Website

change table definition syntax

Friday, 12. August 2005 01:06.

Bad news: a lot of source code must still be changed. Good news: it becomes more beautiful.

Tables are no longer defined by subclassing Table and (in most cases) also Table.Instance, but simply by defining a class for their Row instances, and a class method initTable(self,table). Okay, there is a dummy row instance created just to call this method, that's less beautiful but disturbs much less than the previous nested classes.

The new application Addressbook demonstrates the new API, using code from sprl.

Refering articles:

Copyright 2001-2007 Luc Saffre.
Generated 2007-06-07 16:22:31