Is there a way to specify a superclass at runtime?
Rhodri James
rhodri at wildebst.demon.co.uk
Tue Oct 6 20:23:01 EDT 2009
On Mon, 05 Oct 2009 14:49:42 +0100, Chris Colbert <sccolbert at gmail.com>
wrote:
> I dont think so, because that would require logic outside of the
> controller class to determine which controller to instantiate.
>
> My whole purpose for Controller is to encapsulate this logic.
>
> So, if the data should be simulated, then i just need to pass
> -simulate True as a command line argument, and the controller takes
> care of it...
I almost hate to point it out, but that command line argument is
"logic outside of the controller class to determine which controller
to instantiate." It's also a darn sight easier to code.
--
Rhodri James *-* Wildebeest Herder to the Masses
More information about the Python-list
mailing list