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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.