[Modeling-users] creating objects by name
Status: Abandoned
Brought to you by:
sbigaret
|
From: John L. <jl...@gm...> - 2004-07-08 03:32:20
|
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)
?
--
John Lenton (jl...@gm...) -- Random fortune:
bash: fortune: command not found
|