|
From: John A. B. <ja...@os...> - 2003-07-16 23:14:22
|
Hi, I'm using SQLObject for a new project of mine, and despite a few issues, I'm liking it a lot better than the other alternatives I've tried. =20 One problem I've noticed is regarding style classes. I want to make my own subclass of MixedCaseUnderscoreStyle with a few tiny changes, but the utility functions the class uses (mixedToUnder, etc) aren't exported. I could import them manually, but that seems inelegant, so I see two alternatives: 1. add the functions to the __all__ variable. 2. create a MixIn class with these functions (now methods) that is inherited along with the Style class. I attached a patch (against CVS) with does number 2. I think it's a cleaner approach...thoughts? Are style classes just not meant to be subclassed further? -jab --=20 John A. Barbuto ja...@os... Senior System Administrator, Open Source Development Network http://www.osdn.com/ =20 |