google-app-engine

Google app engine or query (python)

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. ...

Google App Engine to Twisted

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...

security concerns around storing user data on Google App Engine

Are there any security or compliance concerns around storing user data, (name, email, address, tel) in Google App datastore? ...

Which exception App Engine raises when a task nears the 30 second limit?

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? ...

Profiling Google App Engine Project With Eclipse TPTP?

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...

Parsing unicode attachment names on incoming mail to Google App Engine

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...

Google app engine:BigTable Client like toad for oracle.

BigTable Client like toad for oracle or SQL Server Management Studio Express? ...

why i can't get the data form Model.all() using google app engine.

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 :...

Django model form with selected rows

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...

how can I have access to a task list on GAE?

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...

Google Appengine & jQuery: Error 414 (Requested URI too long)

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...

Problems for parse POST json message Django/GAE

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...

custom authentication and authorization on GAE

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...

HTTP Error 405 Method not allowed error in admin log

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...

Appengine - how to get an entity and display values

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...

Equivalent of objects.latest() in App Engine

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...

how can i get the geo_pt on another Model using google app engine(python)

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={ } ...

how to get the info which contains 'sss', not "= ",

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 "? ...

GET amount of retweets for all and each tweet from Twitter on GAE?

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 set Google App Engine cron job using different interval in different period of time?

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. ...