I'm having trouble figuring out the proper way to update "nested" data using Google App Engine
and JDO. I have a RecipeJDO and an IngredientJDO.
I want to be able to completely replace the ingredients in a given recipe instance with a new list of ingredients. Then, when that recipe is (re)persisted, any previously attached ingredients...
I'm using google app engine to build a website and I'm having problems with special characters. I think I've reduced the problem to this two code samples:
request = urlfetch.fetch(
url=self.WWW_INFO,
payload=urllib.urlencode(inputs),
method=urlfetch.POST,
headers={'Content-Type': 'application/x-www-form-urlencode...
I have a slight issue with dates in Django and Google App Engine:
I have the following class because I want date input in the form of DD/MM/YY:
class MyForm(ModelForm):
mydate = forms.DateTimeField(input_formats=['%d-%m-%y', '%d/%m/%y'])
class Meta:
model = MyObject
This works for entering into the datastore....
Hi,
I'm currently experimenting with GWT and Spring. More specifically I wanted to make the GreetingService sample to work with Spring on the server side. There are a couple of articles available for realizing this (I'm linking them here since some of you may be interested):
http://ice09.wordpress.com/2009/05/25/google-app-engine-spri...
What is the best way to migrate MySQL tables to Google Datastore and create python models for them?
I have a PHP+MySQL project that I want to migrate to Python+GAE project. So far the big obstacle is migrating the tables and creating corresponding models. Each table is about 110 columns wide. Creating a model for the table manually i...
In python, what is the best way to launch an Amazon EC2 instance from within a Google App Engine app? I would like to keep my AWS keys as secure as possible and be able to retrieve the public DNS for the newly launched EC2 instance.
...
Using the below code, my template loads fine until I submit the from, then I get the following error:
e = AttributeError("'ToDo' object has no attribute 'response'",)
Why doesn't my ToDo object not have a response attribute? It works the first time it's called.
import cgi
import os
from google.appengine.api import users
from google...
I am trying to figure out the best way to deploy a single google app engine application across multiple regions.
The same code is to be used, but the stored data is specific to each region. Motivating examples are hyperlocal review sites, like yelp.com or urbanspoon, where restaurants and other businesses to review are specific to a re...
I'm trying to combine Google App Engine with RPX Now user authentication and a per-user limited access pattern.
The per user access-limiting pattern relies upon GAE's global User.get_current_user(), like-so:
from google.appengine.api import users
class CurrentUserProperty(db.UserProperty):
def checkCurrentUser(self, value):
if v...
I'm using Google App Engine (Java) with JDO. How can I do the JDO equivalent of
select * from table where field like '%foo%'
The only recommendation I have seen so far is to use Lucene. I'm kind of surprised that something this basic is not possible on out-of-the-box GAE.
...
I would like to enable students to submit python code solutions to a few simple python problems. My applicatoin will be running in GAE. How can I limit the risk from malicios code that is sumitted? I realize that this is a hard problem and I have read related Stackoverflow and other posts on the subject. I am curious if the restrictions ...
First, a little background:
I am using ATrack, an free google app-engine based torrent tracker, and I need some help integrating with it.
I have pasted the (or what i can tell might be) relevant code here as i think its a little too long to put in this post.
If you read carefully you'll see it check to see if the event is stopped. I n...
My intention is to upload just static html file to google app engine. No servlets, no JSPs.
I have the following directory structure
C:\Users\yccheok\Desktop\sandbox\index.html
C:\Users\yccheok\Desktop\sandbox\WEB-INF\appengine-web.xml
C:\Users\yccheok\Desktop\sandbox\WEB-INF\web.xml
The content of appengine-web.xml is
<?xml version...
I am very well versed in the theory and practice of relational database design.
I know what works and what doesn't, what is performant and what is maintainable (almost - there's always place to tweak when you start having real data).
It seems I can't find a substantial body of knowledge regarding distributed scalable databases such as ...
How do I escape parameters of queries in JDO (Google App Engine)?
For example, how do I make the next snippet safe, if the variable name may contain unsafe chars as single quotes (')
PersistenceManager pm = ...;
String query = "select from Person where name='"+name+"'";
List<Shortened> shortened = (List<Shortened>) pm.newQuery(query).e...
Hi.
I've omitted some code(package declarations, imports, other fields)
for shortness.
I have here simple One-to-Many relation.
It worked fine till this moment.
@PersistenceCapable(identityType = IdentityType.APPLICATION,
detachable="true")
class Restaurant implements Serializable {
@PrimaryKey
@Persistent(valueStrategy = IdGenerator...
Hi all,
I just want to ask a simple question, as I don't imagine how to do it.
In the app.yaml, when I want to declare query string parameter, how do I do it?
For example, to make a multi language site, I create the url in this format:
mysite.com/english/aboutus
mysite.com/italiano/aboutus
and in app.yaml the script to handle them...
Hi lawyers programmers
When using a library or data set that is priced "per server", how many licenses should I buy to run it in Google App Engine?
Is there a way to know on how many physical machines my web application is deployed? Is it relevant?
...
When you call a web service like this:
username = 'test12'
password = 'test34'
client = httplib2.Http(".cache")
client.add_credentials(username,password)
URL = "http://localhost:8080/wyWebServiceTest"
response, content = client.request(URL)
How do you get the username/password into variables on the server side (i.e...
I am using the Goole app engine datastore with Java and trying to load an Object with a List of Enums. Every time I load the object the List is null. The object is
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class ObjectToSave {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
pr...