google-app-engine

Auto-populated fields, Django forms on GAE

class Story(db.Model): title = db.StringProperty(required=True) slug = db.StringProperty(required=True) I'm working with Django's forms on Google App Engine. I want to automatically generate a slug from a user-submitted title -- and then I want to validate that it exists. The slug doesn't have to be unique, it just has to exis...

Safe to use Google Apps Engine for new ideas? What rights am I giving up?

Hey. I am planing to start on a new project which has a kinda unique idea. Usually I develop things on my own server, but since that is far inferior to the Google apps engine solution i am thinking of switching platforms. However, I am worried that if I start to develop and if becomes "a success" (atleast within my standards), I have p...

When are property validations run in Google App Engine (GAE)?

So I was reading the following documentation on defining your own property types in GAE. I noticed that I could also include a .validate() method when extending a new Property. This validate method will be called "when an assignment is made to a property to make sure that it is compatible with your assigned attributes". Fair enough, but ...

GAE: Using properties for keys() in ModelChoiceProperty boxes

I have a model User which appears as a ReferenceProperty in another model, Group. When I create a form for Group, using Meta, the form's values contain lots of generated strings. I'd like to stop this, and use the username field of User instead. I already define a key_name. However, str(user.key()) still gives a generated string. I cou...

Is OAuth and OpenID the right approach in this case?

I am still trying to wrap my mind around the workings of OAuth/OpenID, as such... I am developing an "installed app" that will run on computers and iPhone. A given user may install the client app on multiple machines, and all of the user's installed clients will synchronize via a centralized Google App Engine service. The GAE service ...

Java RDF libraries for Google App Engine?

Are there any Java libraries available that allow RDF processing on the Google App Engine? ...

How do I select a file within a .app in Mac OS X?

I'm trying to configure PyDev in eclipse, and as part of that I'm trying to add some source folders to the External Libraries section for PYTHONPATH. However, when I click "Add source folder" in eclipse, it's not letting me drill into any .app directories. Normally, in regular Finder, I would right click and choose "Show Package Contents...

When I deploy code through the GoogleAppEngineLauncher, does it upload all files?

So currently GoogleAppEngineLauncher is pointing to a directory that contains my app.yaml file, along with several other directories - Let's say they are directory A, B and C. If A and B contain python files, template files etc. used by the app, but directory C contains no code whatsoever (it's just a misc directory with random stuff in ...

Is there any book on Google App Engine for java?

I would like to start using Google App Engine for java. But i don't know, where to start. Is the tutorial provided by google [ http://code.google.com/appengine/docs/java/overview.html ] enough ? Also, please mention some good books on GAE [ java ] so that i can download those from rapidshare or torrent buy those books and start reading ...

Sending the variable's content to my mailbox in Python?

I have asked this question here about a Python command that fetches a URL of a web page and stores it in a variable. The first thing that I wanted to know then was whether or not the variable in this code contains the HTML code of a web-page: from google.appengine.api import urlfetch url = "http://www.google.com/" result = urlfetch.fetc...

Continuous Integration and App Engine

Are there any Continuous Integration tools that will run on Google App Engine? ...

Base Class "Does Not Seem to Have Been Enhanced" After Upgrade of Google App Engine SDK for Java

I get errors like this when attempting to run unit tests under App Engine SDK 1.2.8. The unit tests pass under SDK 1.2.6 using the same code. "Class com.foo.bar.BaseClass does not seem to have been enhanced. You may want to rerun the enhancer and check for errors in the output" A class which extends BaseClass IS persisted, but has the...

How does incr work with expiry times?

In memcached (appengine api implementation), how does expiration interact with incr()? There isn't a time argument for incr(), but what happens if I add the key with another call rather than using the initial_value param, like so: memcache.add('testcounter', 0, time=60*90) newcnt = memcache.incr('testcounter') will testcounter stil...

Simple DB query on Google App Engine taking a lot of CPU time.

I'm fairly new to Google App Engine and Python, but I did just release my first real-world site with it. But now I'm getting problems with one path that is using significantly more CPU (and API CPU) time than the other paths. I've narrowed it down to a single datastore fetch that's causing the problem: Carvings.all().fetch(1000) Under t...

Why import urlfetch from Google App Engines?

Here in Google App Engines I got this code that would help fetch an HTML code of any web page by its URL: from google.appengine.api import urlfetch url = "http://www.google.com/" result = urlfetch.fetch(url) if result.status_code == 200: doSomethingWithResult(result.content) I don't understand one thing here (among many other things, ...

Is there anything wrong with this Google App Engine url-fetching code that I have here?

When I view the source of the page in my browser (FireFox) (View->Page Source), copy it and paste it into my HTML editor, I view almost the same page (In this example it is www.google.com) as it appears in my browser. But when I get the HTML source through this code (through Googles App Engines) from google.appengine.api import urlfetch...

python lxml on app engine?

Can I use python lxml on google app engine? ( or do i have to use Beautiful Soup? ) I have started using Beautiful Soup but it seems slow. I am just starting to play with the idea of "screen scraping" data from other websites to create some sort of "mash-up". ...

gae datastore backup

Is it necessary to do backups of gae's datastore? Does anyone have any experience, suggestions, tricks for doing so? ...

Django form in Google App Engine unable to find module PIL.

There are actually a couple of questions here. For what I'm doing, I'm doing a basic image upload with Django 1.1 and Google App Engine. Here is my form class: class UploadPictureForm(forms.Form): picture = forms.ImageField() And then on submit, I have the following code: def handle_picture(request): form = UploadPictureFor...

Python app engine import issues after app is cached

I'm using a modified version on juno (http://github.com/breily/juno/) in appengine. The problem I'm having is I have code like this: import juno import pprint @get('/') def home(web): pprint.pprint("test") def main(): run() if __name__ == '__main__': main() The first time I start the app up in the dev environment it works fin...