google-app-engine

HTTP authentication in app engine dev server

I want to setup the app engine dev server, so that it's available to other people for a preview. What I'd really like to do before that is enable http authentication for any url served from that site. I don't want anyone to access the service without passing that stage. I could of course build my own http authentication into the app I'm...

how to fetch reference property in django template

I am using aep on google app engine class Link(): bag = db.Referencepropery(Bag) #bag have name, id and other property name = db.Stringpropery object_query = Link.all(); p = paginator( object_query) object_list = p.page(1); prefetch_references( object_list.object_list, 'bag') render_to_response(...,{'object_list':object_li...

Email Support in Google App Engine

Is there a mechanism to receive emails and/or establish IMAP connections in Google App Engine? I know that GAE provides limited support for the JavaMail API (i.e. only allow to send emails). Any workaround? ...

Does Wicket hamper SEO or search engines ability to crawl?

We're coming from GWT projects and because of problems with SEO not liking GWT for our next project we're going to move clear of GWT (mainly because seo is a high priority for this next project). In choosing a new framework, I'm looking at Wicket and liking what I've seen so far. I've only done a few tutorials, but in looking at the wa...

Parameter binding using GQL in Google App Engine

Okay so I have this mode: class Posts(db.Model): rand1 = db.FloatProperty() #other models here and this controller: class Random(webapp.RequestHandler): def get(self): rand2 = random.random() posts_query = db.GqlQuery("SELECT * FROM Posts WHERE rand1 > :rand2 ORDER BY rand LIMIT 1") #Assigning values for Django templa...

Google App Engine / JDO : is there a session cache?

Since there is no way to join tables using Google App Engine datastore, I loop over a list of entities and look up the related entities one-by-one using the foreign key value. for (Employee staff: staffList){ Employee manager = pm.getObjectById(Employee.class, staff.getManagerId()); } There is a good chance that I will be needing ...

How to fetch rows from below table using google app engine GQL query (python)?

List_name Email ========== ================== andrew [email protected] adam [email protected] smith [email protected] john [email protected] andrew [email protected] adam [email protected] smith [email protected] john [email protected] andrew [email protected] adam [email protected] smith ...

How to achieve "scheduling" in Google App Engine

Know that either java-version or python-version it doesn't support threading or processes. So if I want to execute a small snippet periodically in GAE, is there any possibility? Oh, I'm just finding there is a document mentioned about it: http://code.google.com/appengine/docs/java/config/cron.html ...

Locally Hosted Google App Engine (WebApp Framework / BigTable)

I have been playing with Google App engine a lot lately, from home on personal projects, and I have been really enjoying it. I've converted a few of my coworkers over and we are interested in using GAE for a few of our projects at work. Our work has to be hosted locally on our own servers. I've done some searching around and I really ca...

Using HTTP Basic-Auth with Google App Engine URLFetch service

How can I specify the username and password for making Basic-Auth requests with App Engine's URLFetch service (in Java)? It seems I can set HTTP headers: URL url = new URL("http://www.example.com/comment"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestProperty("X-MyApp-Version", "2.7.3")...

How do I get PyParsing set up on the Google App Engine?

I saw on the Google App Engine documentation that http://www.antlr.org/ Antlr3 is used as the parsing third party library. But from what I know Pyparsing seems to be the easier to use and I am only aiming to parse some simple syntax. Is there an alternative? Can I get pyparsing working on the App Engine? ...

Query against Link type in Google App Engine Datastore

I'm trying to run a query to see if a link already exists in the database. In my example below url is of type Link. Query query = pm.newQuery("select from com.ClassName where url == newUrl"); query.declareParameters("com.google.appengine.api.datastore.Link newUrl"); List<ResourceItem> results = (List<ResourceItem>) query.execute(new...

jpa, more then one primary key

Hello, I have an Article entity and an ArticleCode entity. Aritcle Code has Article as forgeing key but is has also a second and third primary key. The example below isnt possible because Article isnt serializable. Any ideas? Thanks, Ralph @Entity public class Article { @Id @GeneratedValue(strategy=GenerationType.TABLE) p...

Sign in to AppEngine web application from an Android client application

I'm writing an Android application that I want to be able to send requests to a Google App Engine application. In order to do this, the Android app needs to authenticate the user (should be able to just use their Google Account). I'm not sure I'm doing it right, but this is the only way I've found so far: Post email, password, etc. t...

How do I put data into the datastore of Google's app engine?

I have a little application written in php+mysql I want to port to AppEngine, but I just can't find the way to port my mysql data to the datastore. How am I supposed to save the data into my datastore? Is that even possible? I can only see documentation for persistence of Java objects, does that mean I have to port my database to a bunc...

Parse an HTTP request Authorization header with Python

I need to take a header like this: Authorization: Digest qop="chap", realm="[email protected]", username="Foobear", response="6629fae49393a05397450978507c4ef1", cnonce="5ccc069c403ebaf9f0171e9517f40e41" And parse it into this using Python: {'protocol':'Digest', 'qop':'chap', 'realm':'[email protected]', '...

Constraints in google-app-engine?

Hello, is it possible to use Constraints in the google-app-engine? It seems not to work ... http://www.datanucleus.org/products/accessplatform%5F1%5F1/jpa/orm/constr... The properties codingSystem and code should be unique. Is there a workaround? @Entity @Table(uniqueConstraints={@UniqueConstraint(columnNames= {"codingSystem","code"})...

change default_charset in google app engine patch

when I do this in google native django, it's ok but when I change this setting in gae-patch it seems that it is not working ...E\common\zip-packages\django-1.1.zip\django\utils\safestring.py in _proxy_method(self=u'\n<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01...rd 500 page.\n </p>\n</div>\n</body>\n</html>\n', *args=('gbk',), **kwarg...

Preventing HttpClient 4 from following redirect

I'm connecting to my AppEngine application using the Apache HttpComponents library. In order to authenticate my users, I need to pass an authentication token along to the application's login address (http://myapp.appspot.com/%5Fah/login?auth=...) and grab a cookie from the header of the response. However, the login page responds with a...

Is there a stable integration procedure/pluggin for Django 1.1 and Google app engine?

What is the best procedure/plugging to use to integrate django and google app engine? I have read many articles in the internet and seen videos on how to go round this. Am still left wondering which is the best procedure to use. Is there an official procedure documented in django or google app engine. Examples and site references will ...