Jason Chu wrote:
> I read a little bit of discussion on mixin classes in the archives, but
> nothing was finalized.
I think a lot of this can be better implemented using events and live
attributes. This is talked about some in the docstrings
sqlobject.events (in svn trunk), and an example of using those in
sqlobject.joins (ManyToMany and OneToMany). Also of note is that class
attributes with an __addtoclass__ attribute on them will get called
while the class is being set up.
This way you can set up these properties as variables you add to the
class, and they can modify the class and listen for events to modify
other behavior. Attaching multiple such objects to one class shouldn't
be any problem.
--
Ian Bicking / ianb@??? / http://blog.ianbicking.org
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play:
http://sourceforge.net/geronimo.php
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@???
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss