I see an example of doing a partial string search on the GAE google group (this thread):
String term1 = "cow";
String term2 = "horse";
Query q;
q.setFilter("name.matches('" + term1 + "%')");
so this works like:
"Find all objects of the class where property 'name' starts with term1"
so that would match stuff like:
cowfoo
cowgr...
I need to design a data model for an Amazon S3-like application. Let's simplify the problem into 3 key concepts - users, buckets and objects. There are many ways to design this model - I'll list two.
Three Kinds - User, Bucket and Object. Each Object has a Bucket as its parent. Each Bucket has a User as its parent. User is the root.
Dy...
I'd like to use GAE to allow a few users to upload files and later retrieve them. Files will be relatively small (a few hundred KB), so just storing stuff as a blob should work. I haven't been able to find any examples of something like this. There are a few image uploading examples out there but I'd like to be able to store word documen...
In my App Engine datastore I've got an entity type which may hold a large number of entities, each of which will have the property 'customer_id'. For example, lets say a given customer_id has 10,000 entities, and there are 50,000 customer_ids.
I'm trying to filter this effectively, so that a user could get information for at least 2000 ...
Hi,
I have a data model where I'm not sure if I'll get any benefit from nesting classes in entity groups. The basic model is that User owns many horses, a horse can only own one saddle:
// Model 1, nest everything:
User
Horse
Saddle
Horse
Saddle
// Model 2: Just let them all be siblings.
User
Horse
Hors...
I'm running a cron file in Google App Engine. It seems to be working fine, except I don't want anyone to be able to access the URL.
Here is my .cron file:
cron:
- description: testing cron
url: /tester
schedule: every 1 minutes
I tried adding: "login: admin" underneath "schedule", but I get:
enter code here
Error parsing yaml file:
...
Hi,
is there any possibility to call method just before making object persistent?
Something like "onMakeObjectPersistent()"
I want to calculate geohash basing on lon and lat and store it in datastore.
Regars,
M
Solution:
as @Duy Do post:
in JDO we can do that using jdoPreStore() method:
@PersistenceCapable
public class Foo implem...
Hi! I'm trying to create web app on pure Scala code. I use last version of Google plugin for Eclipse to create App Engine Web project. After it I add Scala nature to project. I rewrite standart Java servlet generated by Google plugin to Scala servlet version. Everything fine, no scala code errors found. But Eclipse show me some errors in...
Say you are creating a facebook style app for the app engine. How would you handle user profile pics?
As far as I know, you would have to either store the images in the datastore or blobstore. Which means every fetch to a picture would require going through a dynamic handler and using up at least 20ms cputime.
Is there an efficient...
Let's say I had a root app and multiple sub-apps. Would it be possible to share authenticated sessions across them?
I'm using Google App Engine (Python).
...
Ok guys I am having tons of problems getting my working dev server to a working production server :). I have a task that will go through and request urls and collect and update data. It takes 30 minutes to run.
I uploaded to production server and going to the url with its corresponding .py script appname.appspot.com/tasks/rrs after...
I'm looking to incorporate twitter API features into an app engine project that I'm working on.
I'm relatively new to both app engine and python, so I'm wondering what modules/frameworks I should use to most easily incorporate twitter, and to facilitate twitter oauth?
I've seen:
python-twitter
tipfy
gaema
...
When I type which python, I get the following result:
/Library/Frameworks/Python.framework/Versions/Current/bin/python
when I type "type -a python":
python is /Library/Frameworks/Python.framework/Versions/Current/bin/python
python is /Library/Frameworks/Python.framework/Versions/2.6/bin/python
python is /Library/Frameworks/Python.fram...
Basically I have a webfaction space (assume for the purposes of this question that its free).
I am trying to learn python by created some simple web applications on Google App Engine using Eclipse + Pydev for development.
So far I have some basic functionality working in App Engine, though I have had some frustration with some library ...
I have a google app engine app where I would like to extend one of my Entity definitions. How would I ensure existent entity objects get the new fields properly initialized? Would the existent objects, the next time I query them, simply have default values? I'd like to add a StringListProperty.
...
Versioned URL's are mentioned near the bottom of this section with very little explanation:
http://code.google.com/appengine/docs/python/config/appconfig.html#Secure_URLs
I want to find out more about versioned URL's, but I can't seem to find any more information. My main concern has to do with disabling them. I can see how this could ...
I'm new to Google Apps and I've been messing around with the hello world app that is listed on the google app site. Once I finished the app, I decided to try to expand on it. The first thing I added was a feature to allow the filtering of the guestbook posts by the user that submitted them.
All I have changed/added is simply a handle...
Hi
I'm a newbie to Google App Engine but have played around with Django in the past so I am trying to use Django-nonrel with GAE.
There's not much information online, but have followed these tutorials successfully:
http://blog.sidmitra.com/getting-up-and-running-with-django-nonrel
http://www.allbuttonspressed.com/projects/djangoappeng...
I need to take an object out of an EntityGroup and store it outside of an entity group, I think the simplest way to explain it is to show the code. In the following code, will the removeMessage() function roll back both calls to the persistence manager?
Is there a way to test this, ie how do I simulate the second makePersistent request ...
I'm trying to find all object which have no parent (i.e. which were created with parent=None).
Using M.all().filter("parent = ", None).fetch(100) doesn't bring any results, even though some objects certainly do have no parent.
What am I doing wrong?
...