this is my Teackback:
D:\zjm_demo\app>appcfg.py upload_data --config_file=upload/str_loader.py --filename=upload/a.csv --kind=College --url=http://localhost:8100/remote_api
Uploading data records.
app_id argument required for non appspot.com domains
D:\zjm_demo\app>appcfg.py upload_data --app_id=zjm1126 --config_file=upload/str_loader....
I have a Model called Version that looks like this:
from google.appengine.ext import db
import piece
class Version(db.Model):
"A particular version of a piece of writing."
parent_piece = db.ReferenceProperty(piece.Piece, collection_name='versions')
"The Piece to which this version belongs."
note = db.TextProperty()
...
I am writing an app using python on GAE. I figure since I'm using google logins as the authentication for my users, why can't I use each users google chat picture as their user portrait? However I haven't found a way to access that info. Maybe I've been using facebook api's for too long, but is there any way to access that information?
...
my a.csv is:
001,哈哈大学
002,拉拉大学
003,啊啊啊大学
004,文网文大学
005,卡卡卡大学
006,请求权大学
007,凤飞飞大学
and my str_loader.py is :
class College(db.Model):
cid = db.StringProperty(required=True)
name = db.StringProperty(required=True)
class CollegeLoader(bulkloader.Loader):
def __init__(self):
bulkloader.Loader.__init__(self, 'College',...
I'm using the Python libraries for Google App Engine. How can I override the equals() method on a class so that it judges equality on the user_id field of the following class:
class UserAccount(db.Model):
# compare all equality tests on user_id
user = db.UserProperty(required=True)
user_id = db.StringProperty(required=True)...
I've got an android app that authenticates to an appengine app. I've had it working for a little while, until the authToken supplied to me (by android's AccountManager) expired, causing a 500 error when I tried to use it to get a session cookie.
I have now invalidated the authToken, but after that I still cannot authenticate. However, i...
I'm currently building a Python webapp on the Google App Engine and I want to expose various parts of my application via a JSON API. This API may be used in the form of a mobile client, or (for the purposes of testing) a headless Python script.
I need to be able to authenticate users before they perform operations on the API. I notice t...
i follow this article : here to update data to gae localhost server from mysql.
this is my str_loader.py is :
class College(db.Model):
cid = db.StringProperty(required=True)
name = db.StringProperty(required=True)
class MySQLLoader(bulkloader.Loader):
def generate_records(self, filename):
"""Generates records from ...
How would I go about forcing the browser to download media files instead of attempting to stream them? These are static files in my application directory.
...
Hi,
I installed latest gae plugin(0.8.2) and try to run my app(gorm-jpa, grails 1.3.2 as its the only supported version)
I get the following error.
Cleared my classpath-doesnt help
Has anyone solved this/any ideas
Help is much appreciated
Bala
java.io.IOException: Cannot run program "C:\jdk1.6.0_16\jre\bin\java.exe": CreateProcess err...
I have a unit test for my GAE app:
def test_getNeighborhoodKeys_twoCourses(self):
cs1110, cs2110 = testutils.setUpSimpleCourses()
foo = getFooResult()
bar = getBarResult()
self.assertEquals(foo, bar) # fails
This is the failure:
AssertionError: set([CS 1110: Untitled, CS 2110: Untitled]) != s...
my 'College' model data is :
my str_loader.py is :
class MySQLExporter(bulkloader.Exporter):
def output_entities(self, entity_generator):
conn = MySQLdb.connect(host='localhost',user='root',passwd='root',db='test',charset="utf8")
c = conn.cursor()
for entity in entity_generator:
c.execute("INSERT...
It is announced here
New App Engine Launcher for Windows
http://googleappengine.blogspot.com/2009/09/app-engine-sdk-125-released-for-python.html
But it's only for Python not for Java ?
...
Hi there,
I currently work with Google's AppEngine and I could not find out, whether a Google DataStorage Object Entry has an ID by default, and if not, how I add such a field and let it increase automatically?
regards,
...
I'm having an odd error where GAEUnit seems to be hung on assertion statements that have error strings that are too long.
I'm running these tests on the GAE Dev server 1.3.3.
This works just fine:
self.assertEquals(2 + 2, 5, "[2, 3, 4]") # works
However, if I defined a longer string, and try to print that out:
jsonTest = '''[
...
When I deploy my google app engine project, I get the following warning:
WARNING appengine_rpc.py:399 ssl module not found.
Without the ssl module, the identity of the remote host cannot be verified, and
connections may NOT be secure. To fix this, please install the ssl module from
http://pypi.python.org/pypi/ssl.
I downloaded the pac...
Can you recommend some great book to learn how to make app with web services for the Google app engine?
...
How to create simple post/get API making simple calling to GAE database using Google App Engine? Like create DB item retrive and delete. How to acsess it after you created it?
...
What is core difference between Java for Google App Engine and J2EE? (I am not familiar with Java at all so can you please explain me what is diference in general and in what to learn is better for resume)
...
I expect the index.yaml file to update with the necessary indices when I run queries in my development environment. It claims that it is updating this file in the dev server log, but the file doesn't actually change. Any idea what might be going on?
Here is the entire index.yaml file:
indexes:
# AUTOGENERATED
# This index.yaml is aut...