On Fri, 27 Apr 2007 at 09:04, Bibliobox.com - Filip de Waard wrote:
> What I believe is going on is that my database model module
> (dbmodel.py, originally model.py) is being loaded and executed twice
> by CherryPy. This is confirmed by putting a print "foo" in my
> dbmodel.py (which is displayed twice in a row). This is very
> unnatural, though, as modules are normally only run twice if they are
> explicitly reloaded in Python.

I have no clues on your problem, but thought I'd share that when
I put debugging statements into my code, they _all_ printed twice.
Probably means I'm not using logging right (I didn't do anything to
change the default configuration, though), but you might want to run
some experiments to make sure that double print really means a double
execution and isn't just a logging artifact.

--David

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to