Can anyone share your approach for doing a 'or' query in app-engine?
Let say I have
class A_db_model(db.Model):
valueA = db.ListProperty(basestring)
in valueA I have
aaa
aaa, bbb
bbb
ccc
I would like to return result of if the valueA match 'aaa' or 'bbb' and return not duplicated result.
...
I was about to migrate the GAE-OpenSocial project to Twisted Matrix and Nevow. I am very new to Nevow templating and couldn't find good documentation other than given in Divmod's Nevow Project page. Is there any books relating to Nevow? I am having trouble serving static files in Nevow. For app engine its easy to define static files in a...
Are there any security or compliance concerns around storing user data, (name, email, address, tel) in Google App datastore?
...
From Task Queue Python API Overview:
If your task's execution nears the 30
second limit, App Engine will raise an
exception which you may catch and then
quickly save your work or log process.
Which exception is that?
...
How can I profile a google app engine project locally with the Eclipse Test & Performance Tools Platform?
I already installed the plugin, but when I choose to profile it, there is no option to profile it as a web application, only as a java application which doesn't work.
Update: It asks for a main class and I choose com.google.appengi...
I have an app engine app that receives incoming mail with attachments. I check the attachment filename to make sure that the extension is correct. If the filename has umlauts or accented characters in it the encoding makes the filename unreadable to my methods, so I don't know how to check the file type.
For example, if I send a file wi...
BigTable Client like toad for oracle or SQL Server Management Studio Express?
...
this is my code in main.py
class marker_data(db.Model):
geo_pt = db.GeoPtProperty()
class HomePage(BaseRequestHandler):
def get(self):
a=marker_data()
a.geo_pt=db.GeoPt(-34.397, 150.644)
a.put()
datas=marker_data.all()
self.render_template('3.1.html',{'datas':datas})
and in the html is :...
Hi All,
I have a django model roughly as shown below:
class Event(db.Model):
creator = db.ReferenceProperty(User, required= True)
title = db.TextProperty(required = True)
description = db.TextProperty(required = True)
class Ticket(db.Model):
user = db.ReferenceProperty(User, required = True)
event = db.ReferencePropert...
Hi.
I'm planning on using GAE's TaskQueue API to refresh my cache of HTML pages, which I save in the Datastore (and memcache, but Datastore is more reliable).
Once a week, i add/edit some data, and need to regenerate associated HTML pages, and triggering tasks is the way to do.
Note that different edits may imply changing the same c...
I have problems posting data to my local appengine application using JQuery Ajax. Here is simplified client side code:
text_to_save = 'large chunk of html here'
req = '/story/edit?story_id=' + story_id + '&data=' + text_to_save;
$.post(req, function(data) {
$('.result').html(data);
});
Here is simplified server side code:
class S...
When I send a POST message to the GAE with a json parameters using POST the QueryDict parsed by the server is not parsed like a json ...
I found a similar problem in this issue: http://stackoverflow.com/questions/2579235/iphone-json-post-request-to-django-server-creates-querydict-within-querydict
Maybe is a problem with the GAE configu...
hi,
im trying to understand how to implement my own authentication and authorization machinery for my GAE app. does anyone already implemented something like that and maybe can give me some advice?
what i need is grant access on certain sections to specific users and restrict the access to others.
i looked at repoze.who and reapoze.wh...
I'm getting a strange error in my newly deployed application in appengine. In the error log it tells me that PageRank, TwitterBot and a couple of others. I would guess this is due to these try to get data using ajax or another async service resulting in "same origin policy"-problem.
My question is does anyone know what these bots are tr...
I'm having trouble with my project. I have 2 models
class UserPrefs(db.Model):
user = db.UserProperty()
name = db.StringProperty()
class Person(db.Model):
name = db.StringProperty()
phone = db.PhoneNumberProperty()
userPrefs = db.ReferenceProperty(UserPrefs)
class PersonHandler(webapp.RequestHandler):
def get...
Hi,
What would be the best way to get the latest inserted object using AppEngine ?
I know in Django this can be done using
MyObject.objects.latest()
in AppEngine I'd like to be able to do this
class MyObject(db.Model):
time = db.DateTimeProperty(auto_now_add=True)
# Return latest entry from MyObject.
MyObject.all().latest()
An...
this is my code:
class Marker_latlng(db.Model):
geo_pt = db.GeoPtProperty()
class Marker_info(db.Model):
info = db.StringProperty()
marker_latlng =db.ReferenceProperty(Marker_latlng)
class BaseRequestHandler(webapp.RequestHandler):
def render_template(self, filename, template_values={}):
values={
}
...
this is my code:
class Marker_latlng(db.Model):
geo_pt = db.GeoPtProperty()
class Marker_info(db.Model):
info = db.StringProperty()
marker_latlng =db.ReferenceProperty(Marker_latlng)
q = Marker_info.all()
q.filter("info =", "sss")
but how to get the info which contains 'sss', not "=",
has a method like "contains "?
...
Hi,
I have a service with 1000 users and everyone has tweeted around 1000 times each. So the total amount of tweets from my service is around 1 000 000. And this number is increasing all the time.
My question is, how can I get and check the amount of retweets for each tweet without having my service crashing all the time because of "Cr...
How to config a cron job to run every 5 minutes between 9:00am~20:00pm,
but every 10 minutes in other time of the day.
...