Hi,
How do we create a parent key which is an encoded string? Example:
class Parent {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
private String mEncKey;
}
class Child {
@PrimaryKey
@Persistent(valueStrategy = I...
Hello Guys,
I am completely fresh to both JDO and GAE, and have been struggling to get my data layer to persist any code at all!
The issues I am facing may be very simple, but I just cant seem to find any a way no matter what solution I try.
Firstly the problem: (Slightly simplified, but still contains all the info necessary)
My data...
I'm working on GAE-J/GWT app, wherein a desktop app connects to the GAE-J component, and there is also a web-app component whose front-end is written in GWT, and the GAE-J backend supports both the desktop app and the web app.
I have a good amount of experience with writing pure server code and desktop code, but not so much on the web-a...
In my GAE-Java app, I'm using the low-level datastore API. Hence I don't need the GAE app instance to load any of the higher level data access libraries such as JPA, JDO, Data Nucleus, etc.
Is there a flag that I can set to indicate that I don't want these libraries to be loaded?
My motivation to do this is to reduce app instance start...
I am able to insert, filter and order records but can't use a simple count!!
I am wondering if there a way to get no of total rows in a table??
Is there a way to use GROUP BY in query?
...
I am making a web page using the Google App Engine. I am validating my pages, and found that the logout link that is generated by the call to the users api (in python) users.create_logout_url(request.uri) does not validate as XHTML 1.0 Strict. The href in the anchor tag looks like this:
/_ah/login?continue=http%3A//localhost%3A8080/&a...
Hi I am trying to follow the Tweepy App Engine OAuth Example app in my app but am running into trouble.
Here is a link to the tweepy example code: http://github.com/joshthecoder/tweepy-examples
Specifically look at: http://github.com/joshthecoder/tweepy-examples/blob/master/appengine/oauth_example/handlers.py
Here is the relevant snip...
Hi
I would like to run cron job on GAE and using python
In the cron.yaml, how do i insert the "url" field if consist of some "get" info
The:
description: whatever
url: url?keyword=a
schedule: every day 15:00
give me error when deploy
...
Here goes pseudo code of bulk update/delete entities of different kind in single transaction. Note that Album and Song entities have AlbumGroup as root entity. (i.e. has same parent entity)
class Album:
pass
class Song:
album = db.ReferenceProperty(reference_class=Album,collection_name="songs")
def bulk_update_album_group(album):
...
How would i get the current URL with Python,
I need to grab the current URL so i can check it for query strings e.g
requested_url = "URL_HERE"
url = urlparse(requested_url)
if url[4]:
params = dict([part.split('=') for part in url[4].split('&')])
also this is running in Google App Engine
...
GAE webapp allows to map single handler to a route:
application = webapp.WSGIApplication([
('/login', gae_handlers.UserLogin),
], debug=True)
Is there any way I can have a chain of request handlers?
I want to have handler which does authentication before all ot...
I'm a python newbie so I apologize in advance if this question has been asked before.
I am building out an application in GAE and need to generate a report that contains the values for a user-defined subset of fields.
For example, in my db model, CrashReport, I have the following fields:
entry_type
entry_date
instance_id
build_id
cra...
Given:
class A:
pass
class B(A):
pass
isinstance(B(), A) will return True.
BUT
class MyModel(db.Model):
pass
isinstance(MyModel(), db.Model) returns False(surely True?).
What am I missing?
Edit:
Ok, simplest test that fails- created a blank GAE project. Inside main.py I've defined:
from google.appengine.ext import db
c...
Has anyone tried to implement Metro web services on GAE-Java. It is not lsited on http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine and I would like to know if GAE will support it
...
I am trying to figure out a way where I can create a tab-delimited file containing data from user-defined fields and allow the user to download that file on google app engine.
The sandbox environment that the app runs in does not allow the application to write to disk. Is there another way where I can create a downloadable file?
...
This question concerns two implementations of counters which are intended to scale without sharding (with a tradeoff that they might under-count in some situations):
http://appengine-cookbook.appspot.com/recipe/high-concurrency-counters-without-sharding/ (the code in the comments)
http://blog.notdot.net/2010/04/High-concurrency-counter...
Using Django templates in Google App Engine (on Python), is it possible to compare a template variable to an integer in an {% if %} block?
views.py:
class MyHandler(webapp.RequestHandler):
def get(self):
foo_list = db.GqlQuery(...)
...
template_values['foos'] = foo_list
template_values['foo_count'] =...
I am using the Google plug-in for Eclipse and have the following problem:
The project (A) consists of a GWT based GUI talking to a server running on GAE and using JPA.
Additionally there is a project (B) to migrate the legacy data to the new datastore.
Since these both project use a common data model, I have extracted a set of interface...
First off, I'm using Google AppEngine and Guice, but I suspect my problem is not related to these.
When the user connect to my (GWT) webapp, the URL is a direct html page. For example, in development mode, it is: http://127.0.0.1:8888/Puzzlebazar.html?gwt.codesvr=127.0.0.1:9997. Now, I setup my web.xml in the following way:
<?xml versi...
Now when I run this command:
/usr/bin/python ~/google_appengine/appcfg.py update ~/cdn
I should write email and password.
And it is keeping some time, but after a day, I should write email and
password again.
How can I keep my auntification (email and password) for long time
(month, year)?
...