user317033
user317033

Reputation:

Cherrypy and SimpleDB with boto

Anyone using Cherrypy and Boto? Any issues? Threads? Any simple examples out there?

I'm wondering where to put the initial boto.connect_sdb statement and whether I can save a domain object or have to call get_domain as I handle every page.

Upvotes: 0

Views: 94

Answers (1)

garnaat
garnaat

Reputation: 45906

I haven't specifically used boto with CherryPy but there are certainly examples (e.g. botoweb) of it being used in similar frameworks. The main things about SDBConnection objects (or any connection object in boto) is that they use httplib under the covers and that is not threadsafe so you can definitely re-use and persist connection and Domain objects but make sure each thread has it's own.

Hope that helps.

Upvotes: 1

Related Questions