Hi all,
My application requires several objects to be created -
things such as
a db connection, some meld3 templates and a formencode
validation
object.
There is a very useful recipe that explains how to create db
connections per thread and I use this successfully to create
connections to an SQlite file.
Is this also the best way to create other objects that are
shared by my
exposed methods?
Could I create the meld3 templates just once on server.start
and share
them amongst threads?
Or is there a reason to create these objects every time an
exposed
method is called? (I can't think of one).
Cheers,
Rob C
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
|