[Zope] Product module reloading
Sean Treadway
seant@factory.dk
Mon, 20 Sep 1999 15:43:29 +0200
Michel Pelletier wrote:
> Py$ root_folder=Zope.app()
>
> Zope.app() creates a database connection and returns you the top level
> Zope object.
>
This is a super tip, thanks guys. I have things working in the
interpreter, but still would like to shorten "edit-test" cycles by
keeping everything in vim +python
How does one close and restart Zope explicitly from the interpreter? I
tried "reload(Zope)" which fails because it can't get a lock on the DB
lock file. So, looking at manage_restart() I tried "for db in
Globals.opened: db.close()", "reload(Zope)" which fails for the same
reason.
Thanks,
Sean