google-app-engine

Google Datastore - Blob or Text

2 possible ways of persisting large strings in the Google Datastore are Text and Blob properties. From a storage consumption perspective which of the 2 is recommended? Same question from a protobuf serialization and deserialization perspective. Thanks, Keyur ...

Run some java periodically on App Engine?

Is there a way to periodically run some code on app engine? I have a form which allows users to upload images, and I do the image upload before the full form submission. There is potential for a user to upload an image, and then never finish the form. I need to periodically run a check and delete any unassociated images to clean up. ...

WTFroms error:TypeError: formdata should be a multidict-type wrapper

from wtforms import Form, BooleanField, TextField, validators,PasswordField class LoginForm(Form): username = TextField('Username', [validators.Length(min=4, max=25)]) password = PasswordField('Password') when i use LoginForm on webapp(gae) like this : def post(self): form=LoginForm(self.request) but it show error : ...

jpa-Google app engine

I had created entity in google app engie datastore using JPA. I set the id as follows @Id @GeneratedValue(strategy=GenerationType.SEQUENCE) private Long s; After i deployed my applicaiton it give identity (i.e) unique value.but igive 1001,1002,1003 ....as id.But i wnat 1,2,3,4,5 like that.how to achive this? ...

jpa-Primarykey relationship

Hi created student entity in gogole app engine datastore using JPA. Student--->Coding @Entity @Table(name="StudentPersonalDetails", schema="PUBLIC") public class StudentPersonalDetails { @Id @Column(name = "STUDENTNO") private Long stuno; @Basic @Column(name = "STUDENTNAME") private String stuname; public void se...

unique constraints-Google app engine

Is google app engine datastore support unique constraints? Thanks in advance ...

easy way to change a dict data to url Parameter ..

(1) a={'b':'bbbb','c':'ccc',....} (2) self.redirect('/tribes/view?b=' + a['b'] + '&c=' + a['c']) so i want to get b=' + a['b'] + '&c=' + a['c'] ... from dict a hae any easy way to do this ? thanks ...

how to make the username and email is Unique .. using WTFroms

wtforms is a forms validation and rendering library for python web development but i can't find how to handle the username and email Unique , thanks ...

how to get all 'username' from my model 'MyUser' on google-app-engine ..

my model is : class MyUser(db.Model): username = db.StringProperty() password = db.StringProperty(default=UNUSABLE_PASSWORD) email = db.StringProperty() nickname = db.StringProperty(indexed=False) and my method which want to get all username is : s=[] a=MyUser.all() for i in a: s.append(i.username) and i wa...

Change|Assign parent for the Model instance on Google App Engine Datastore

Is it possible to change or assign new parent to the Model instance that already in datastore? For example I need something like this task = db.get(db.Key(task_key)) project = db.get(db.Key(project_key)) task.parent = project task.put() but it doesn't works this way because task.parent is built-in method. I was thinking about creating...

Unit testing Google wave robots in Java

Any tips or best practices for unit testing Google Wave robots written in Java? I'm expecting to deploy on AppEngine, if that helps. I'm a fan of TDD but new to both Wave Robots and AppEngine, so I'm hoping to use TDD to help me explore the design space. ...

In google app engine, how to iterate through form fields (python, wsgiref.handlers)

Using python and wsgiref.handlers, I can get a single variable from a form with self.handler.request.get(var_name), but how do I iterate through all form variables, be they from GET and POST? Is it something like this? for field in self.handler.request.fields: value = self.handler.request.get(field) Again, it should include both fi...

Is a GWT app running on Google App Engine protected from CSRF

I'm developing a GWT app running on the Google App Engine and wondering if I need to worry about Cross-site request forgery or is that automatically taken care of for me? For every RPC request that requires authentication, I have the following code: public class BookServiceImpl extends RemoteServiceServlet implements BookService { ...

App Engine remote_api with OpenID

Hi, I've recently tried to switch my app engine app to using openID, but I'm having an issue authenticating with remote_api. The old authentication mechanism for remote_api doesn't seem to work (which makes sense) - I'm getting a 'urllib2.HTTPError: HTTP Error 302: Found', which I assume is appengine redirecting me to the openid login p...

Difference between owned one to many relationship and owned one to many bidirectional relationship(Google App Engine Java Api)

what is the difference between owned one to many relationship and owned one to many bidirectional relationship i read the article below but i don't understand it. Article ...

Google App Engine: TypeError problem with Models

I'm running Google App Engine on the dev server. Here is my models file: from google.appengine.ext import db import pickle import re re_dept_code = re.compile(r'[A-Z]{2,}') re_course_number = re.compile(r'[0-9]{4}') class DependencyArcHead(db.Model): sink = db.ReferenceProperty() tails = db.ListProperty() class DependencyA...

grails 1.3.1 Error executing script GenerateViews:

Here is the lay of the land. I have an app that I have created. I uninstalled hibernate, installed app-engine plugin and am using jdo. I am able to create a domain-class but the when I run generate-all I run into the following error. Oh and I did try just generating the controller for the domain class and that seemed to work fine but t...

Google App Engine: get_or_create()?

Does Google App Engine have an equivalent of Django's get_or_create()? ...

How do I get contents of a Google Wave given the wave id and wavelet id?

I am using the robots api. I have a wave id and wavelet id, and my app's email is added to the wave. How can I simply get the wave (or wavelet's) contents using the python api? ...

HttpError 502 with Google Wave Active Robot API fetch_wavelet()

I am trying to use the Google Wave Active Robot API fetch_wavelet() and I get an HTTP 502 error example: from waveapi import robot import passwords robot = robot.Robot('gae-run', 'http://images.com/fake-image.jpg') robot.setup_oauth(passwords.CONSUMER_KEY, passwords.CONSUMER_SECRET, server_rpc_base='http://www-opensoci...