Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top