I'm having a lot of trouble writing unit tests for my app engine patch solution.
I've asked this question on experts exchange (http://www.experts-exchange.com/Programming/Languages/Scripting/Python/Q_26509115.html) but it's been there for two weeks with no answer - hopefully the SO crew can improve on that!!
I've tried everything I've ...
I have an android app I want to connect to a Google App Engine based server. I can get the auth token from the AccountManager. It seems the next thing I am supposed to do is talk to an auth page to get a cookie. Following the awesome instructions here: http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-ap...
Hello,
I am trying to build a wikipedia link crawler on google app engine. I wanted to store an index in the datastore. But I run into the DeadlineExceededError for both cron jobs and task queue.
for the cron job I have this code:
def buildTree(self):
start=time.time()
self.log.info(" Start Time: %f" % start)
nobranches...
I'm trying to figure out how to change url routing based on namespace
Say I have myapp.x.com/apage and myapp.y.com/apage, I tried the code below but
it doesn't work because I presume the main.py is being cached
ns = namespace_manager.google_apps_namespace()
if ns == 'x.com'
app = WSGIApplication([
(r'/apage', 'my.module.XHa...
I am converting a script to use the new bulkloader. (What was wrong
with the original bulkloader? - I prefer writing Python to editing
configuration files...)
Anyway, I want to prevent duplicates by assigning a combination of
properties to the key.
The docs say:
If you want to use or calculate a key
from the import data, specify a...
I am learning GAE with python. I am trying to build the simplest possible application: get name from user; write name to datastore; retrieve name and display page. I tried the tutorial but I still do not understand how to do this. I appreciate any answers. Thank you
...
I have this code to find all the nodes where property branches is empty.
nobranches=TreeNode.all()
for tree in nobranches:
if tree.branches==[]:
I wanted to find a better, more efficient way to do this. A meathod where I don't have to retrieve all the TreeNodes. I have tried TreeNode.all().filter(branches=[]) but this gi...
I have an app written with GWT and GAE where every supported city has its own app. Clearly this is not the best way to manage the map so I want to merge them all into one app. Currently my app is at the urls sub1.myapp.com, sub2.myapp.com, sub3.myapp.com, etc, and I want them to be at myapp.com/sub1 ,myapp.com/sub2, etc. All the suppo...
I use python to develop my gae application in ubuntu. In my PC the app works well, but when uploaded to the appspot serve, my program will report encoding errors. like
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 3: ordinal not in range(128)
How to change my development environment to make the encoding setting s...
Well it's not like I dislike MS products. Actually I became MS fan in last years. Silverligt + ASP.NET MVC + WPF + Windows Mobile 7 + Bing + IE9 + Windows7. I'm in heaven :)
And more over i hate Google and almost all Google products (i don't know why, but for me all Google sites\apps look ugly and primitive)
But when I had to chose clo...
I'm using pyfacebook on my app but I'm having problems displaying xfbml
For example I have to use iframes to display like buttons or like boxes.
What's strange:
1) On the login page the appears correctly, I just have problems on other pages (once logged in)
2) The FB.init part I use is
<script src="http://static.ak.connect.facebook.c...
Hello,
I have written a web application to run on Google AppEngine using the Restlet framework, communicating using json with web clients. Those work as expected. However, one specific resource written to provide response to an Android client doesn't work when accessed through Android. However, it does work when accessed through a web br...
I'm developing a Java web application on GAE platform in which I'm storing an User object in session. When I test my code in local development server (Windows XP + Eclipse), I'm able to get the User object back from the session.
But when I deploy the same piece of code to GAE server, I'm facing issues with Session. I'm able to retrieve ...
Is there any problem with using classes in com.google.appengine.repackaged.* ?
I mean, it it an unofficial API, is it subject to change or could it be a source of future problems ?
...
Is there a way to read the contents of a static data directory or interact with that data in any way from within the code of an application?
Edit: Please excuse me if it wasn't clear at first, I mean getting a list of the files in that directory, not reading the data in them.
...
I've been following the latest developments with server-side JavaScript - especially Node.js - and wondering if there is any possibility of using such an approach to develop a Google App Engine web application - either separately from or in combination with Python or Java?
...
Possible Duplicate:
Windows Azure vs Amazon EC2 vs Google App Engine
I am familiar with Amazon EC2. But how is it different from Azure, AppEngine and SalesForce?
...
Hi,
I have some google appengine java servlet that I access from some iphone 4 app.
The servlet writes the response as XML. I have set the content type of the servlet response to "text/plain". If I fetch the servlet page using Chrome, the response is gzipped (1 Kb). But, if I fetch the servlet using my iphone app, the response is 19 Kb...
I'm using a third-party library which needs urlfetch from google.appengine.api. It is imported into the executing tests using this line:
from google.appengine.api import urlfetch
The google_appengine directory is on my PYTHONPATH, and if I execute my unit tests directly from Eclipse, I see no errors. However, if I use nosetests, I se...
First Eclipse:
Cannot get rid of this error...
Have tried every suggested fix on google..
Persistent class "Class com.blahb.blahblah.master.UserToken does not seem to have been enhanced. You may want to rerun the enhancer and check for errors in the output." has no table in the database, but the operation requires it. Please chec...