[Tutor] Dynamically generated classes

Rasjid Wilcox rasjidw at gmail.com
Thu Dec 23 15:33:18 CET 2010

On 23 December 2010 20:13, Alan Gauld <alan.gauld at btinternet.com> wrote:
> I think it will do what you want but I wouldn't bother putting the class
> definitions inside the init - unless there is a good reason. At the very
> least I would create two factory methods which are called by init.
> That would allow you to reset the classes if needed too.

Wonderful!  It turns out a single factory method which can be called
once for each table per database is all that I need.  It has
simplified the code significantly.

Thank you very much.


More information about the Tutor mailing list