google-app-engine

How can I define a string in a python function?

Hi, I'm playing with Python and Google App Engine for the first time but am unable to define a string within my function (mytest2), I get an indentation error on the line after the declaration. I can define one in the parameters that works (test) but can't see why I wouldn't be able to do it in the function aswell. I've read a few tuto...

On the google app engine, how do I change the default logging level of the dev_appserver.py?

Dev_appserver.py (the local development server for Python google app engine) spews tons of useless INFO messages. I would like to up this to WARN or ERROR. How can I do that? I've tried the following, but it has no effect... logger = logging.getLogger() logger.setLevel(logging.WARN) Any ideas? ...

Using Web2Py in Making a blog in Python (Google App Engine)? Is it a good Idea?

I know there are tons of blogging platforms out there (Wordpress,Drupal,etc) but I want to make my own blog engine or blog platform from scratch using python as a learning tool. The idea of using Google App Engine solves the issues in hosting. Blogs relatively consumes less amount of disk space and If it scales then there's no problem of...

why model has the key_name don't has the key().id() on google-app-engine

if i use this : class A(db.Model): a=db.StringProperty() class demo(BaseRequestHandler): def get(self): a=A() a.a='sss' a.put() raise Exception(a.key().id()) i can get the a.key().id() is 961 but if i add key_name="aaa" , the a.key().id() will be None : class A(db.Model): a=db.StringPrope...

Does anyone have a code example of AES encryption in python on Google App Engine?

Hi, I have a query string I need to encrypt using AES in CBC mode with zero padding, before finally encoding it to base64 and I need to run this on Google App Engine in Python. I've had a look around and can't be sure what works in GAE and what doesn't, I'm also finding it hard to get example code of some of those I believe should work...

Unable to deploy a Roo/GWT application on Google AppEngine from Springsource Tool Suite

Hi everybody, I followed this excellent tutorial but, as it doensn't cover the deployment part, I tried to do it by myself. So, I installed Springsource Tool Suite in Ubuntu. Then, I create a "demo1" Roo project. Next, with the built-in Roo Shell, I taped the following commands: persistence setup --provider DATANUCLEUS --database HYPE...

how to Reference the variable via db.run_in_transaction on google-app-engine .

this is my code: class A(db.Model): a=db.StringProperty() class demo(BaseRequestHandler): def get(self): a='' def fn(): global a a=A(a='www') a.put() db.run_in_transaction(fn) raise Exception(a.key()) and the error is : raise Exception(a.key()) AttributeErr...

how to parse the remainder: [0] on google-app-engine .

my code is : class demo(BaseRequestHandler): def get(self): a=[[1,2,3],[3,6,9]] self.render_template('map/a.html',{'geo':a}) and the html is : {% for i in geo %} <p><a href="{{ i[0] }}">{{ i[0]}}</a></p> {% endfor%} and the error is : raise TemplateSyntaxError, "Could not parse the remainder: %s" % to...

OpenID authentication on AppEngine and non-AppEngine subdomains

I have a main website running on AppEngine. It's on a subdomain like main.example.com. This main application is a content portal for our customers. It offers an Ajax application built on YUI. Customers can upload data to it. Users authenticate using Federated Login. The Ajax application on it allows users to process the data previousl...

Ruby on Rails app on Google App Engine

Hey there! Can anyone point me how I could deploy my rails app to GAE? I've been reading about it, but it seems to be a fairly complicated task. I tried with the google-appengine gem, but its not a piece of cake either. Has there been any progress with the DataMapper adapter or I'll need to make changes to my models? I was hoping to s...

How to use a custom __init__ of an app engine Python model class properly?

I'm trying to implement a delayed blog post deletion scheme. So instead of an annoying Are you sure?, you get a 2 minute time frame to cancel deletion. I want to track What will be deleted When with a db.Model class (DeleteQueueItem), as I found no way to delete a task from the queue and suspect I can query what's there. Creating a Del...

Tree structures in a nosql database

I'm developing an application for Google App Engine which uses BigTable for its datastore. It's an application about writing a story collaboratively. It's a very simple hobby project that I'm working on just for fun. It's open source and you can see it here: http://story.multifarce.com/ The idea is that anyone can write a paragraph, wh...

Google App Engine: How to "close" an object before second transaction?

Here's the psudo-code for one of my methods: 1. Get PersistenceManager (pm) 2. pm.fetchObject1 3. pm.beginTransaction 4. pm.modifyObject1 5. pm.commit 6. pm.fetchObject2 7. pm.beginTransaction 8. pm.modifyObject2 9. pm.commit however I get this error "can't operate on multiple entity groups in a single transaction..." Do I ...

Google App Engine: How much faster is key-based lookup compared to a query?

Lets say I want to retrieve 4 objects. What would be faster: 1. for (int i = 0; i < 4; i++) { persistenceManager.getObjectById(object1) } or 2. Query = (select * from objects where id == 'id1' || id == 'id2' || id == 'id3' || id == 'id4') Thanks ...

Multiple datastore operations - how many persistence manager refs do we need?

Hi, I'd like to run a few datastore operations, but am not sure if we need to get a new reference to the persistence manager for each operation (I think this is expensive?). Example: public void submitUserRating(String username, String productId, int val) { PersistenceManagerFactory pmf = PMF.get(); PersistenceManager pm = pmf...

The overhead of Django framework (performance impact) on Google Apps Engine

I am wondering if someone has researched how much overhead the Django framework will introduce in compare of Google App Engine's simple web framework? I am planning run some tests and figure out what's the overhead look like and hopefully find out if it has significant impact for an application with the data store (since data store will...

GAE WSGIApplication and multiple request

In dev_appserver class MainPage(webapp.RequestHandler): def get(self): self.response.out.write("Hello MainPage") class TestPage(webapp.RequestHandler): def get(self): # 10 seconds i = 1 while True: if i == 10: break time.sleep(1) i = i + 1 application = webapp.WSGIApplication([ ('/', Ma...

twitter Rate limit exceeded google app engine

I am using google app engine and would like to download tweets from a given user. I am simply calling http://api.twitter.com/1/statuses/user_timeline/USERNAME.json But almost always (About 99% of times) I get "Rate limit exceeded. Clients may not make more than 150 requests per hour" does this problem has something to do with Google Ap...

Does Google App Engine have any support for cookieless domains?

It seems like static files can only be served from the same domain as the app. I could create a new app for hosting static files but I'm a little nervous that that would a violation of the terms of service. ...

is there a way to download my application code from GAE

Hi, I accidently deleted my application code from my own machine, however it's running on Google App Engine (GAE), is there a way I could download it from there? -- ...