John Lenton
2004-07-08 01:38:08 UTC
I'm certain this has been asked and answered before, but I can't find
it anywhere: how can I create an object by name? By this I mean,
instead of doing
from MyModel.Thing import Thing
a_thing = Thing()
ec.insert(a_thing)
what magic do I use to do
do_magic()
a_thing = more_magic('Thing')
ec.insert(a_thing)
?
it anywhere: how can I create an object by name? By this I mean,
instead of doing
from MyModel.Thing import Thing
a_thing = Thing()
ec.insert(a_thing)
what magic do I use to do
do_magic()
a_thing = more_magic('Thing')
ec.insert(a_thing)
?
--
John Lenton (***@gmail.com) -- Random fortune:
bash: fortune: command not found
John Lenton (***@gmail.com) -- Random fortune:
bash: fortune: command not found