google-app-engine

keys and unique rows in appengine datastore

I'm still fairly new to working with java and the google appengine datastore. I can put data in and get it out of the datastore, and I am trying to make it so that a user cannot be entered twice. As there is no unique index on the datastore, I'm setting a hash of the users email address as a primarykey. Strangely, when I enter the sa...

What's the best way to implement a webapp to teach programming with?

In the near future, I'm going to be doing a series of short workshops for teens aged 13-17, who may not have any programming experience at all, showing them the basics of programming and webapps. The workshops are short, so it really has to stick to the absolute basics. The apps will be written in Python, for App Engine. Edit: I guess I...

Can Google be used for site search on a database backed website?

I'm developing a web site with Google App Engine, and I want to have a search feature for user submitted stuff. Since this project is just a toy and I don't control the server, I'd like to just use Google to handle search. However, since the content is stored in the database, I don't think Google can discover the dynamic urls. Unless may...

Google App Engine singletons (Python)

The standard way of doing singletons in Python is class Singleton(object): _instance = None def __new__(cls, *args, **kwargs): if not cls._instance: cls._instance = super(Singleton, cls).__new__(cls, *args, **kwargs) return cls._instance However, this doesn't work on App Engine, since there are may ...

How to forwarding bare domain to www.domain for google app hosted site

I am in the process of porting some sites from my own server to Google (GHS). I've always used ZoneEdit to manage my DNS needs and in the past - wrongly or rightly - configured it so that: domain.com and www.domain.com pointed to: <my known ip address> With the www sub-domain all is fine and it (www.domain.com) resolves to ghs.google.c...

Google App Engine: Share data between users

Is it possible to make invitations to share/view data similar to Google Docs? ...

question on google-app-engine datastore

I have a datastore object that uses one of the fields in the class to create the key. Suppose I have an object 'a' with a value 'k' for this field. If I try to add an object 'b' to the datastore, which also has value 'k' for the field, object 'b' overwrites object 'a'. Just wanted to confirm if this is expected behaviour. While it looks ...

AppEngine fetch through a free proxy

My (Python) AppEngine program fetches a web page from another site to scrape data from it -- but it seems like the 3rd party site is blocking requests from Google App Engine! -- I can fetch the page from development mode, but not when deployed. Can I get around this by using a free proxy of some sort? Can I use a free proxy to hide the...

Google App Engine application instance recycling and response times...

Hi, I posted this on GAE for Java group, but I hope to get some answers here quicker :) I decided to do some long-run performance tests on my application. I created some small client hitting app every 5-30 minutes and I run 3-5 of threads with such client. I noticed huge differenced in response times and started to investigate issue. ...

Can google app engine site be blacklisted for exceeding twitter api rate limit?

Hi I have a website that uses twitter api. The thing is that site becomes blank once the api limit is reached(I THINK) and then after a while it starts displaying the results. I am running on GAE appspot.Because I have the appspot subdomain, does this mean that I can never be blacklisted? Also what is the use of a twitter api, when I c...

Uploading files to App Engine using webapp and Django forms

My basic question is this: Is there an equivalent of form = MyForm(request.POST, request.FILES) when handling file uploads using the webapp framework on Google App Engine? I know that I can pull out specific uploaded file data using self.request.get('field_name') or a FieldStorage object using self.request.params['field_name'], but...

Reusing OAuth request token when user refresh page - Twitter4j on GAE

Hi I am using Twitter4J API on GAE/J. I want to use the request token when user came to my page. (called back URL). And press refresh button. I write following code for that. But When user press refresh button. I got Authentication credentials error. Please see the stacktrance. It works fine when user first time used that token. Ho...

IllegalAccessException with grails timeZoneSelect tag on google app engine/java

Hi, Has anyone used the grails timeZoneSelect tag on GAE/J ? I've come across the error below on app engine. I know reflection is not allowed, but the line in error seems to be calling a straightforward public function (inDaylightTime)? Does anyone know how to workaround this (short of a hardcoded list of time zones)? thanks Uncaugh...

Grant public access to one GAE servlet but use authentication for all other resources?

Hello, for an online bug report web application, I need to find a way how any user can submit a bug report (using HTTP POST) to a Servlet in a Google App Engine application, while all other Servlets (the application admin interface) are protected so that they grant access only to users which have logged in with their Google account. The...

Google App Engine Geohashing

I am writing a web application using GWT and App Engine. My application will need to post and query items based on their latitude, longitude. As a result of google's distributed database design you can't simple query a set of inequalities. Instead they suggest doing geohashing. The method is described on this page. http://code.goo...

Google App Engine won't recognize facebook package unless I rename it

I'm trying to intergrate Facebook Connect into an GAE app. I've got a basic folder structure like so: /gae-root /myapp /templates /etc app.yaml settings.py and I tried to add the PyFacebook library like so: /gae-root /myapp /templates /etc /facebook /djangofb app.yaml ...

Persist List of objects

Hi, I got this "javax.jdo.JDOFatalUserException: Error in meta-data for don.Comment.id: Cannot have a java.lang.String primary key and be a child object (owning field is don.Post.comments). NestedThrowables:" when running my grails + app-engine webapp How can I fix this? class Comment.groovy import javax.jdo.annotations.*; @Persi...

Facebook connect on Google App Engine with Django Patch

We are building a website on Google App Engine, using django patch. We would like to use Facebook connect for two purposes: Authenticate users. Access user's social data. Searching for a solution in the usual places (google, FB, SO) brigs up a lot of noise, many partial solutions and no clear answer. So the question is this: does a...

Serving up snippets of html and using urlfetch

I'm trying to "modularize" a section of an appengine website where a profile is requested as a small hunk of pre-rendered html Sending a request to /userInfo?id=4992 sends down some html like: <div> (image of john) John Information about this user </div> So, from my google appengine code, I need to be able to repeate...

Doing something *after* handling a request in Google App Engine

I would like the GAE to do something else once my app has sent a response. The handler would look like this: class FooHandler(webapp.RequestHandler): def post(self): self.response.out.write('Bar') send_response() # this is where I need help! do_something_else() # at this point, the response should have b...