I'm looking for some advice on how to proceed with a TurboGear
application I'm building. Specifically, I want to query a pop mailbox
periodically, fetch messages and parse them, then (eventually?) put
them in an Sqlite database where the TurboGears app can fetch them and
display them in the web app.

My app is working to the point where it displays the contents of the
parsed messages that are in the database. However, I manually put that
data in the database.   What I need is for my python process to start
up when I start my TurboGears application, and continue to run the
entire time that my web app is running.   What is the best way to
design this?

Are there likely to be database contention issues if a background
process is trying to write to the database while the web app is also
trying to read data from the database?  Would I be better off having
my background process put its parsed messages into a temporary file,
then have the web app read that file when it needs the data, put the
data into the database at that time, then query the database?

'Rapid Web Applications with TurboGears' doesn't really get into this
kind of issue.

thanks
Stewart
--~--~---------~--~----~------------~-------~--~----~
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