I've run into a strange problem that I haven't seen before making a get_by_key_name call using the App Engine ORM.
Under no circumstances, one would assume, would the following return None:
Model.get_by_key_name(Model.all().get().key().name())
And yet, that's what I've found that certain key names will do. It's only in a few cases w...
I'm trying to implement an application that coordinates multiple users who are scheduling exclusive resources. The schedule data must maintain strong consistency over a network with a single master node. The scheduled resources could be anything from a conference room to a worker on a job site.
We assume the conference room cannot be sc...
Given that gae & django persistence layers are quite similar, I'm wondering whether someone has tried creating a wrapper? Say, could be useful for utilizing django.forms.ModelForm.
Are there any fundamental problems with this?
...
I'm working on a Google App Engine project that collects stories submitted by users.
This is how I handle submission errors in the post method of my Request Handler:
# get the title and content using self.request.get()
errors = []
if not title:
errors.append("Please enter a title.")
if not content:
errors.append("Please enter a...
I have a RecipeJDO that contains a List<IngredientJDO>. RecipeJDO "owns" the ingredients. This has been working well for me for several weeks. Now I'd like to introduce a new class "GroceryListJDO", that references the ingredients owned by various recipes.
When I try to persist a new GroceryListJDO I get the following:
javax.jdo.J...
Does anyone know of a .net wrapper around either python or java Google App Engine services?
Any help appreciated // :)
...
I'm using GoogleAppEngineLauncher (GAEL) on Mac OS X. The state of the datastore for my application is persisted between server restarts and even GAEL restarts, but if I reboot, the datastore is reset. Is there a setting to prevent this reset, or is there a tmp file somewhere that I can save off?
...
Can someone illustrate how I can store and easily query session data(_sh_SESSION) in google app engine datastore?i am using java.
...
Hi! How to use list/array as property in DataMapper on Jruby on Google AppEngine?
...
The objective is to reduce the CPU cost and response time for a piece of code that runs very often and must db.get() several hundred keys each time.
Does this even work?
Can I expect the API time of a db.get() with several hundred keys
to reduce roughly linearly as I reduce the size of the entity?
Currently the entity has the followi...
Amazon did a great job by providing an online calculator for AWS; resides here:
http://calculator.s3.amazonaws.com/calc5.html
Which really helps to find your way among a swarm of cloud options.
Is there similar a tool for GAE (Google App Engine) or Microsoft Azure?
...
Can I download source code of already deployed app if I've lost it's source code on my hard drive? I've looked through application dashboard but couldn't find any option to check it out.
...
Hi, I've watched this video from Google I/O 2009: http://www.youtube.com/watch?v=AgaL6NGpkB8 where Brett shows microblogging example. He describes two datastore schemas:
first one:
class Message(db.Model):
sender = db.StringProperty()
body = db.TextProperty()
receivers = db.StringListProperty()
and second one:
class Messag...
Hi,
Am wondering if anyone can provide some guidance on how I might implement a starts with or ends with query against a Datastore model using Python?
In pseudo code, it would work something like...
Query for all entities A where property P starts with X
or
Query for all entities B where property P ends with X
Thanks, Matt
...
When I go to appengine.google.com/a/mydomain.com i am able to login and
see all my apps and administer them.
However, when I try to use the remote_api the same username/password does not work.
I'm using the interactive console code from http://code.google.com/appengine/articles/remote%5Fapi.html
...
Are there any big names running on the cloud? Especially on GAE and Amazon?
...
Original Design
Here's how I originally had my Models set up:
class UserData(db.Model):
user = db.UserProperty()
favorites = db.ListProperty(db.Key) # list of story keys
# ...
class Story(db.Model):
title = db.StringProperty()
# ...
On every page that displayed a story I would query UserData for the current user:...
Hello there,
I am try to find out how to enforce uniqueness in fields other than the unique id.
Example:
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class User implements IsSerializable {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;
@Persistent
priv...
I currently have some Ruby code used to scrape some websites. I was using Ruby because at the time I was using Ruby on Rails for a site, and it just made sense.
Now I'm trying to port this over to Google App Engine, and keep getting stuck.
I've ported Python Mechanize to work with Google App Engine, but it doesn't support DOM inspecti...
Hello,
I would like to know, how to configure my DNS to work with subdomains on google appengine.
It already works for www.myproject.com, but i would like to let it work also for www.xmass.myproject.com .
Do you kow, how to set CNAMEs?
...