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
...
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.
...
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 :
...
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?
...
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...
Is google app engine datastore support unique constraints?
Thanks in advance
...
(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
...
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
...
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...
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...
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.
...
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...
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 {
...
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...
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
...
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...
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...
Does Google App Engine have an equivalent of Django's get_or_create()?
...
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?
...
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...