google-app-engine

How to create a form login with Spring Framework on Google App Engine

I'm new to Spring and GAE, and I assume this is easy, so don't overlook the simple answer. In spring I understand that I need to create an implementation of UserDetailsService which populates UserDetails for the security framework on authentication. After doing this I got a NotSerializableException on my SpringUserDetailsService bean, ...

How to handle multiple forms in google app engine?

Say if I have multiple forms with multiple submit button in a single page, can I somehow make all of these buttons work using webapp as backend handler? If not, what are the alternatives? ...

App Engine Version, Memcache

I am developing an App Engine App that uses memcache. Since there is only a single memcache shared among all versions of your app I am potentially sending bad data from a new version to the production version memcache. To prevent this, I think I may append the app version to the memcache key string to allow various versions of the app ...

Google Appengine URL security

Is it possible to ensure that GET/POST requests to a particular url of my Appengine app, AJAX or not, can only be made from within the app and not from outside (ie) all requests from other domains have to be rejected. Possible? ...

moving django project to google app engine

I am trying to move a django project to google appengine. So I followed http://code.google.com/appengine/articles/django.html . But django.dispatch.dispatcher.connect( log_exception, django.core.signals.got_request_exception) django.dispatch.dispatcher.disconnect( django.db._rollback_on_exception, django.core.signals.got_r...

gql specific aggregate function

assume the following: class events(db.model): eventDate = db.DateProperty() eventItem = db.ReferenceProperty(items) class items(db.model): itemCode = db.IntegerProperty() itemTitle = db.StringProperty() now if i have multiple events in the future for a specific item, how can i show a list of all items with only the next occur...

GWT, AppEngine and pretty url (human url)

Can anybody show a working example of how to get pretty urls on a GWT project over AppEngine. I know that you will suggest to look at UrlRewriteFilter. I have been burning it for 3 days and get no succedd. Please, could help? ...

Getting The Most Recent Data Item - Google App Engine - Python

I need to retrieve the most recent item added to a collection. Here is how I'm doing it: class Box(db.Model): ID = db.IntegerProperty() class Item(db.Model): box = db.ReferenceProperty(Action, collection_name='items') date = db.DateTimeProperty(auto_now_add=True) #get most recent item lastItem = box.items.order('-date')[0]...

Is there a better way to iterate over tuples in a (django) template in google-app-engine

Basically, what I'm trying to do is to render os.environ in a template in google app engine. I believe the technology is (or is adapted from) the Django template engine version 0.96 (but correct me if I'm wrong). I found this question suggesting that you could do: {{ for key, value in environ}} But when I try that, I get an error say...

Slicing a result list by time value

I got a result list and want to keep the elements that are newer than timeline and older than bookmark. Is there a more convenient method than iterating the whole list and removing the elements if they match the conditition? Can you introduce me to how specically how? The way I fetch data and then sort it results = A.all().search(self.r...

Setting GTalk status using Java - GAE/J

Hi I want to set the status GTalk through my Java program. My application will run on Google App Engine/Java. And will use XMPP API. Is it possible? And how can I do that? Some code example. Thanks. ...

How to implement "autoincrement" on Google AppEngine

I have to label something in a "strong monotone increasing" fashion. Be it Invoice Numbers, sipping label numbers or the like. A number MUST NOT BE used twice Every number SHOULD BE used when exactly all smaller numbers have been used (no holes). Fancy way of saying: I need to count 1,2,3,4 ... The number Space I have available are t...

Google appengine: tornado vs webapp

I need a light/high performance/low cpu usage web framework use at google appengin, I am not sure which if fit for this between the default webapp framework of GAE and tornado web framework. FYI Well, any way, I have decide to use tornado template instead of the django template on GAE. Tornado is fast, but I don't know is it also fast...

GAE - retrieving the last entry (python)

I am trying to get the most recent data item from the datastore. I am trying to apply the method as explained here but I am getting the object <__main__.Rep object at 0x075F1730> not the item. Can anyone explain what I am doing wrong? The Model is: class Rep(db.Model): sent = db.StringProperty() time = db.DateTimeProperty(auto_...

Business intelligence on Google App Engine

Hello, I want to add analytics and reports to my application on Google App Engine. Can you tell me how I can do that on google's "database"? Are there any oss libraries/tools available? Thank you ...

How do I get the built-in tag "url" to work?

Does anybody know how I can get built-in Django tag url to work in the wrapped template renderer in google-app-engine? It fails to create a "nice" url because it expects Django style url mappings, and since I'm using webapp.WSGIApplication I understand how it can be difficult for it to work. Basically I want to know if there is an altern...

GWT: Where (how) to define POJOs to make em available for client and server? (and to use datastore on serverside)

Hi, I try to get an application running which should interact with a server via RPC (JDO in Google DataStore). So I defined a persistent POJO on the server-side to get it put in the datastore via the PersistenceManager (as shown in the gwt rpc tuts). Everything works fine. But I am not able to receive the callback POJO on the client sid...

GAE import error

Hello, I am trying to use this python module HTML.py but GAE gives me ImportError: No module named HTML According to IDLE path browser the path is here: C:\Python26\lib\site-packages\HTML.py Can anyone help me to fix this problem? Thank you ...

GAE CGI: how to response http status code

I am using google appening, it's CGI environment. I want block some request, I want response nothing even no http status code. Alternative, I want just close the connection. Can I do this? update: I have decide to use what pyfunc said, use 204 status, but how can I do this at GAE CGI environment without any webframework. update 2: T...

Python GeoModel alternative

I'm looking for an alternative library for the app engine datastore that will do nearest-n or boxed geo-queries, currently i'm using GeoModel 0.2 and it runs quite slow ( > 1.5s in some cases). Does anyone have any suggestions? Thanks! ...