google-app-engine

app engine urlfetch cache clearing

Is there a command to do a one time clear of all urlfetch cached data? Have found this http://www.mail-archive.com/[email protected]/msg09869.html which seems to clear on a url by url basis ...

JSF, postback and database alteration

Hi, I'm using JSF, Google App Engine, and OpenSessionInView (using Filter and ThreadLocal). My bean has a private field List<A> allElements; The property getAllElements() retrieves from the database the data, the first time, i.e. when allElements == null. In the page, I have a dataTable binded with {#MyBean.allElements}. Finally, the...

How can I add a custom validator to a google appengine / django form

I am developing an app for use on Google App Engine with Django and Google App Engine Django Helper. A certain model is looking like this: from appengine_django.models import BaseModel from google.appengine.ext import db from google.appengine.ext.db.djangoforms import ModelForm class Server(BaseModel): name = db.StringProperty(req...

Match email sender field with a user ID google app engine

Hi, I'm working on an application that lets users interact with their account by sending emails to a specific address. The app is on GAE and I'm writing it in python. Here's my question: When I receive an email from a user the sender field is text. I want to run a datastore query and match the userID to the sender's email address, b...

On Google App Engine (GAE), how do I search on the Key/ID field?

I've got this code (Java, GAE): // Much earlier: playerKey = KeyFactory.keyToString(somePlayer.key); // Then, later... PersistenceManager pm = assassin.PMF.get().getPersistenceManager(); Key targetKey = KeyFactory.stringToKey(playerKey); Query query = pm.newQuery(Player.class); query.setFilter("__key__ == keyParam"); query.declarePara...

Google AppEngine JDO Persistence error: org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException

I have a class which I am trying to persist to the DataStore but I am getting a org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException when calling my pm.makePersistent(_user) Error text: The class is not persistable. This means that it either hasnt been enhanced, or that the enhanced version of the file is not in the CLASS...

MapReduce on more than one datastore kind in Google App Engine

I just watched Batch data processing with App Engine session of Google I/O 2010, read some parts of MapReduce article from Google Research and now I am thinking to use MapReduce on Google App Engine to implement a recommender system in Python. I prefer using appengine-mapreduce instead of Task Queue API because the former offers easy it...

How to sort with lambda

Trying to sort by date with lambda I can't understand which lambda my error message is referring to. The message is <lambda>() takes exactly 1 argument (2 given) The 2 instructions are a = A.proximity_fetch(A.all().filter("modified >", timeline).filter("published =", True).filter("modified <=", bookmark ).order("-modified") ,db.GeoPt...

google app engine as proxy for watching youtube videos?

atm proxies like http://labnol-proxy-server.appspot.com/ (made by http://www.labnol.org/internet/setup-proxy-server/12890/) can't show youtube videos because to much traffic is redirected through http://*.appspot.com domains. If someone would host his app on a TLD, would this problem be solved and one could view youtube videos with this ...

Problem comparing fields with web2py in GAE

I have this model in web2py DAL: db.define_table('category', Field('name','string'), format='%(name)s' ) db.define_table('uploaded_question', Field('text','string'), ... Field('category', 'string') ) This: db.category(db.category.name == uploaded_question.category) always returns none in GAE sandbox (it w...

Python YouTube Gdata Api: DeletePlaylist

I have correctly initialized YouTubeService. I can move/delete/rename playlist entries, but when I try to delete playlist I get unhelpfull exception: _service = None def get_service(): global _service if _service is None: _service = YouTubeService() gdata.alt.appengine.run_on_appengine(_service) _servic...

Deploying gwt application on google app engine is throwing exception

I've created a small application on google web toolkit and it works fine on local environment. But when I try to deploy it on google-app-engine, it throws an error: XML error validating D:\workspaces\NewChat\Ditch\war\WEB-INF\appengine-web.xml against D:\softwares\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.2.2.v20090729152...

Google App Engine - get_serving_url - how do i immediately remove access to an image in the case of a DMCA takedown notice?

When you use get_serving_url, it creates a url for serving the image. However, according to http://ikaisays.com/2010/09/08/gwt-blobstore-the-new-high-performance-image-serving-api-and-cute-dogs-on-office-chairs/ Deleting an image blob doesn’t delete the image being served from the URL right away – that image will still be avail...

Google App Engine copying sender

I am using the EmailMessage object in Python to send an email using the email service of Google App Engine. I am using an admin account/email from my Google Apps domain. The problem is that when I send an email via the service, the sender is apparently automatically blind copied. There is not information about this in the headers no...

Google app engine: what are content folder data securing options?

It seems for me that when youve got low (in general hacking terms) quotas (I am talking about free GAE plan) and quite large files uoy wanna stream to your users youmust somehow to protect thouse files from "bad" users So it is sad By default, App Engine makes all files in the WAR available as static files except JSPs and files...

Authentication on App Engine / Python / Django non-rel over JSON

I'm building a site on Google App Engine, running python and Django non-rel. Everything is working great for HTML and posting/reading data. But as I'm moving forward I'd like to do many of the updates with AJAX, and eventually also over mobile devices like Android and iPhone. My pages use django non-rel and my login/logout authenticatio...

Google App Engine python Filter "property of property"

Having these models on google app engine: class Choice(db.Model): poll = db.ReferenceProperty(Poll, collection_name = 'choices' ) text = db.StringProperty() class Vote(db.Model): choice = db.ReferenceProperty(Choice, collection_name = 'votes' ) ip = db.StringProperty() date = db.DateTimeProperty(auto_now=1) How do...

Google app engine: hosting java "webservice"

Hi, want to host a webservice with login on google app engine. I will be used as an interface to an admin tool that has to run on a desktop client. Java webservices are not supported on app engine. Any ideas on alternatives? The features I need are: java based on app engine .net based on the client client should be able to login "autog...

Google Apps Engine / Django, calling action upon user login?

I'm new to Google Apps Engine (working on an existing project for someone else) and it seems a bit different than Django as far as the login as the login is handled by Google, I'm trying to make it so the app creates a custom cookie for a user upon their logging in but can't seem to find the handler for the login action... I apologize fo...

Google App Engine, Python, deleting a cookie or changing its value?

I've been searching on this but can't seem to figure out how I can delete a specific cookie using Google Apps Engine, Python version. I am setting the cookie like below and I need to update its value, I figure I may not be able to update and just need to delete and re-create but can't seem to find the way to do that, I am creating it as ...