google-app-engine

How to install PIL on Mac OSX 10.5.8 for Google App Engine?

这一生的挚爱 提交于 2020-01-27 15:35:32
问题 I need to get PIL installed locally to test GAE's images api in my local environment. I grabbed the PIL 1.1.6 installer for Mac, and when I go to select the destination (when installing), I get the error: You cannot install PIL 1.1.6 on this volume. PIL requires System Python 2.5 to install. I have Python 2.5.x on this machine. NOTE: Added a bounty. I am in real need of a way to test the image API locally on my Mac. 回答1: That's quite easy: Install MacPorts Install Python 2.5 with sudo port

How to install PIL on Mac OSX 10.5.8 for Google App Engine?

我的未来我决定 提交于 2020-01-27 15:35:08
问题 I need to get PIL installed locally to test GAE's images api in my local environment. I grabbed the PIL 1.1.6 installer for Mac, and when I go to select the destination (when installing), I get the error: You cannot install PIL 1.1.6 on this volume. PIL requires System Python 2.5 to install. I have Python 2.5.x on this machine. NOTE: Added a bounty. I am in real need of a way to test the image API locally on my Mac. 回答1: That's quite easy: Install MacPorts Install Python 2.5 with sudo port

SendGrid not working in Google app engine endpoints

你说的曾经没有我的故事 提交于 2020-01-26 03:57:09
问题 I need to send info to the google endpoint, which then sets up object with Sendgrid and then sends the email. The emails are not working, nothing is sent through from the app engine. Part of my endpoint code: @ApiMethod(name = "sendEmail") public sendEmailObject sendEmail(@Named("sendTo") String sendTo, @Named("sentFromClient") String sentFromClient, @Named("sendDescription") String sendDescription) { SendGrid sendgrid = new SendGrid(..., ...); SendGrid.Email email = new SendGrid.Email();

Google App Engine and Upload script

岁酱吖の 提交于 2020-01-26 03:25:09
问题 I'm currently using Eclipse that came with Android Development bundle and following the GAE tutorial: https://cloud.google.com/developers/articles/how-to-build-mobile-app-with-app-engine-backend-tutorial I never had any server or backend experiences and I am hoping to make a Android application using features of the App Engine. Everything seems to be going smoothly following the tutorial until I got to the part where you need to "Create an upload script". I have no idea how I should proceed

ndb verify entity uniqueness in transaction

隐身守侯 提交于 2020-01-25 18:43:54
问题 I've been trying to create entities with a property which should be unique or None something similar to: class Thing(ndb.Model): something = ndb.StringProperty() unique_value = ndb.StringProperty() Since ndb has no way to specify that a property should be unique it is only natural that I do this manually like this: def validate_unique(the_thing): if the_thing.unique_value and Thing.query(Thing.unique_value == the_thing.unique_value).get(): raise NotUniqueException This works like a charm

JDO transactions + many GAE instances = overriding data

守給你的承諾、 提交于 2020-01-25 15:48:55
问题 I have very simple PersistenceCapable class: import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; @PersistenceCapable public class TheEntity { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long id; public Long getId() { return id; } @Persistent private int version; public int getVersion() { return version; } public void setVersion(int

appengine channel no messages arrive

烈酒焚心 提交于 2020-01-25 12:46:17
问题 I am trying to get the channel api working. This is what I have so far: in the view: def channel_test(channel_token): tries = 1 logging.info('starting channel_test') for attempt in range(tries): message = 'this is message number: ' + str(attempt) channel.send_message(channel_token, message) logging.info('just sent: ' + message) logging.info(channel_token) def viewfunc(): channel_token = channel.create_channel('aosasdf123') deferred.defer(channel_test, channel_token, _countdown=10) return

appengine channel no messages arrive

ぐ巨炮叔叔 提交于 2020-01-25 12:46:10
问题 I am trying to get the channel api working. This is what I have so far: in the view: def channel_test(channel_token): tries = 1 logging.info('starting channel_test') for attempt in range(tries): message = 'this is message number: ' + str(attempt) channel.send_message(channel_token, message) logging.info('just sent: ' + message) logging.info(channel_token) def viewfunc(): channel_token = channel.create_channel('aosasdf123') deferred.defer(channel_test, channel_token, _countdown=10) return

Handling /_ah/start route NodeJs at Google App Engine

余生长醉 提交于 2020-01-25 11:25:18
问题 I am using Google App Engine Standard Environment for my NodeJs App. Things were working fine until I register a route '/*' in my express app to catch all routes after my initial routes like '/', '/login' etc. . After deploying my app on GAE I got : Error: Server Error The server encountered an error and could not complete your request. Please try again in 30 seconds. In my App Engine build logs : My app.yaml looks like: app.yaml runtime: nodejs10 env: standard service: default health_check:

Can gapi.client.load for cloud endpoints return a promise?

拜拜、爱过 提交于 2020-01-25 10:54:27
问题 A google gapi.client.load for a google api can return a promise as discussed here. However, if you wish to use the javascript client for your own app engine component using cloud endpoints, the gapi.client.load has a different method signature, as shown in this angular post: gapi.client.load('guestbook', 'v1', function() { $scope.is_backend_ready = true; $scope.list(); }, '/_ah/api'); Here, there is a fourth parameter and it is not the success function. So I'm not sure how a promise can be