On 1/3/06, Ronald Jaramillo <[EMAIL PROTECTED]> wrote:
> I'm trying to add table generation from within ModelDesigner, but I
> have a problem:
> After ModelDesigner write your new model file it need to reload the
> model  in order to create the tables.
> But reloading the model file in TG alway result in a Traceback:

Reloading in python is potentially very tricky to get right. You're
working with an isolated enough case that it may be reasonable,
though. You'll likely need to look at the sqlobject source to find out
how to clear the registry.

(CherryPy handles reloading by spawning off a separate python process.
That would be another way to do it, and that route is guaranteed to
have your Python process in a reasonable state.)

Kevin

Reply via email to