I cannot just import the classes, because they don't exist. I load
class columns and joins from the database, and then build up a class
for SQLObject to use. It is working great, except that I have to use
my own getClass() method, and have to preload the non-existent classes
before I use them. If the regsitry could call my factory method, all
child classes will automagically be created.
Scott
On Dec 5, 2004, at 10:26 AM, Oleg Broytmann wrote:
> On Sun, Dec 05, 2004 at 09:07:03AM -0800, Scott Sanders wrote:
>>> The problem I am running into now, is when you have joined classes,
>>> the joined classes have to be explicitly loaded.
>
> I've stumbled over this many times, but I don't have an idea where
> you can load the class from, if its not already loaded. You'd like to
> provide your own callback ("factory function")? Why not just import
> neccessary modules?
>
> Oleg.
> --
> Oleg Broytmann http://phd.pp.ru/
> ph...@ph...
> Programmers don't die, they just GOSUB without RETURN.
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real
> users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> sqlobject-discuss mailing list
> sql...@li...
> https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
|