On 5/15/06, jvanasco <[EMAIL PROTECTED]> wrote:
in model.py this worked
{{{
import psycopg2
def get_db_for_sessions():
dsn = get('sessions.postgres.dsn')
return psycopg2.connect(dsn)
def _session_db_ping():
print "_session_db_ping"
x= get_db_for_sessions()
add_interval_task( action=""
taskname='_session_db_ping', initialdelay=0, interval=30 )
}}}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

