google-app-engine

Trying to format Google App Engine DateTimeProperty for template

I'm using the Tornado framework (Python) on GAE. I'm still kind of new to the whole MVC concept and GAE... and having a dang of a time trying to figure out how to do this. I have a table (model) Post with the fields user, text, creation_date. I pull all the posts in the code and then send it to the template. I want to format the crea...

upload file not working in google app engine

it should works but hitting the submit button redirect my page to http://localhost:8082/sign (http://localhost:8082 being the path to my app). There's no such path in my application thus it return a link broken page. Is this a common problem? ...

OAuth on a mapped Google Apps domain under GAE

Hello, Is it possible to use OAuth between an Official Google Account (gmail, etc) and an app that was mapped to a Google Apps (free) domain? (appspot.com app added to free Google Apps) What works: Google Account -> APP.appspot.com OAuth What doesn't work Google Account -> appsubdomain.APP.com OAuth (appspot mapped) EDIT: What I'm ...

Using namespaces API for testing could affect performance and reliability of my Google App Engine application?

As asked here, I'm looking for a clean solution to setup a staging environment for my Google App Engine application. Reading the new spec of Namespaces API, Google suggest that a possible use of this new feature is: Creating Separate Datastore Instances for Testing and Production In case I decide to use Namespaces for testing, could ...

Google appengine-db.key()

Hi am going through the docs of GAE and needed a small clarification. If I have my db model something like this:- class Phone(Model): phone_name = db.StringProperty() r = Phone(Nokia, key_name='first') r.put() Now if I have to retrieve this entity but I dont know the key, can I construct the key like this: k=db.Key('Phone','first'...

Where does jdo data go while running a war google appengine app in eclipse?

I'm using eclipse and google appengine plugin to develop a war app. I'm trying to use JDO persistency (per appengine rules). I'd like to be able to inspect, add and remove jdo objects my app uses. Is that possible? If so, how? ...

Task fanout - how to bulk add Tasks to the Queue - more than 5

I am using a task (queueing-task) to queue multiple others tasks — fanout. When I try to use Queue.add with task argument being a list of Task instances with more than 5 element's and in transaction… I get this error. JointException: taskqueue.DatastoreError caused by: <class 'google.appengine.api.datastore_errors.BadRequestError'...

Task Queue VS. URLFetch

Hello, I need to run a script (python) in App Engine for many times. One possibility is just to run a loop and use urlfetch with a link to the script. The other one is to open a task with the script URL. What is the difference between both ways? It seems like Tasks have a quota (100,000 daily free tasks) so why should I use them? Than...

Python: Compare dict with a static reference?

Hey, I have to check if a dictionary is the same as it was yesterday, if it has changed. In PHP I could have serialized an array and compared the resulting strings from yesterday and today. However, I don't know how to do it in Py. I've read a little about Pickle and maybe it could be done with md5 somehow? So basically I need a way t...

Why are my Django GAE requests returning "Property details must be a str or unicode instance, not a BoundField"

Why does the commented out code work, while the other code returns a BoundField error? Shouldn't they be equivalent? form = PostForm(request.POST) post = Post(title = form['title'], details = form['details']) #post = Post(title = request.POST['title'], details = request.POST['details']) Also, I fear the title to this question makes n...

Inline SVG Served By Python Script in Google App Engine Not Appearing

I'm writing an app that pulls chunks of svg together and serves them as part of a page mixed with css and javascript. I'm using Python and Google App Engine. What I'm doing works fine on my local development server but fails to render once it's deployed. So here's some test python to build a response: self.response.headers.add_header(...

GAE: Child object that is not in the class

I am trying to duplicate the pattern described in Building Scalable, Complex Apps on App Engine. I am having trouble understanding how to tell GAE that Message index is a child of Message. From google, they say that you create a child object by including it in the parent class, but this is exactly what we are trying to prevent. So how...

Is there any kind of Java image filtering engine capable of using Cg or HLSL or GLSL filtering code on Google app engine server?

Is there any kind of Java image filtering engine/library/framework capable of using Cg or HLSL or GLSL filtering code on Google app engine runtime\servers? Has any one tried doing image manipulations/filtering with gae? ...

How to declare the welcome file (e.g. index.html) in app.yaml

Hey all, In Java, the web.xml might contain some <welcome-file> elements. I am trying to do something equivalent in python with no luck. application: wk version: 1 runtime: python api_version: 1 handlers: - url: / static_dir: docs welcome_files: - index.html Any thoughts? I get an error that "welcome_files" is not understood. ...

My .yaml is not redirecting properly.

app.yaml application: classscheduler9000 version: 1 runtime: python api_version: 1 handlers: - url: /static static_dir: static - url: /images static_dir: static/images - url: /stylesheets static_dir: static/stylesheets - url: /users\.html script: main.py - url: /.* script: login.py main.py import hashlib from googl...

cant upload file in google app engine

I don't know why I cant upload my file? When I hit submit instead of redirecting to the default page(which is http://localhost:8082) , it redirects to http://localhost:8082/sign. I didn't build no such path, so it return link broken. Here's my html: <form action="/sign" enctype="multipart/form-data" method="post"> <div><...

How increase KML output performance?

Hi How can I improve this KML generator? We discussed pre-generating the output like a cron job perhaps saving a blob to blobstore since it can't serve many markers like this. Can you recommend me how to proceed? Is the bottleneck where using images? class KML(webapp.RequestHandler):#get max, make static or cron job save file like blob ...

OpenID and federated logins

The federated login works, now how do I enable OpenID logins like .blogspot.com? I've misunderstood how to enable federated logins and OpenID same time. Are these 2 different cases and can get combined? I can enable federated login with very little code. Then my openid I must've misunderstood since it links to google. Here's how I tried ...

If I create a succesful dot com company utilizing google app engine/datastore will google own it ?

Or is it easier to host my own website and database. The main reason I would use google app engine is the "free" hosting and scalability; Has anyone got experience using app engine, was it a good experience ? ...

AttributeError - Django, GAE

This is my code for views.py def addCategory(request): user = users.get_current_user() if users.is_current_user_admin(): if request.method == 'POST': form = CategoryForm(request.POST) if form.is_valid(): cd = form.cleaned_data Category.objects.create_category(cd['na...