google-app-engine

Generated discovery file for iOS endpoints fails

亡梦爱人 提交于 2020-01-13 03:24:10
问题 I'm hoping some one can help me out here, maybe give me an idea of what to look for. When I run the service generator on my discovery file I get the following output: Generation Settings: Output Directory: ~/Desktop/endpoints Discovery RPC URL: https://www.googleapis.com/rpc?prettyPrint=false Api Log Dir: ~/Desktop/endpoints Flags: Use service name directory: NO Remove unknown files: NO Add 'Generated' directory: NO Allow rootURL overrides: YES Loading API File(s): Fetching ~/Desktop

Python what does it mean “AttributeError: 'unicode' object has no attribute 'has_key' ”

送分小仙女□ 提交于 2020-01-13 03:19:22
问题 I would like to ask what does it mean "AttributeError: 'unicode' object has no attribute 'has_key'" Here is the full stack trace: Traceback (most recent call last): File "D:\Projects\GoogleAppEngine\google_appengine\google\appengine\ext\webapp\__init__.py", line 509, in __call__ handler.post(*groups) File "D:\Projects\workspace\foo\src\homepage.py", line 71, in post country=postedcountry File "D:\Projects\GoogleAppEngine\google_appengine\google\appengine\ext\db\__init__.py", line 656, in _

Google App Engine bulkloader issue when using yaml autogenerated configuration and entities with numeric ID

坚强是说给别人听的谎言 提交于 2020-01-12 23:43:59
问题 My application uses Django non-rel. I don't have access to model. I have my bulkloader.yaml file autogenerated by appcfg.py create_bulkloader_config . Problem is entities numeric ID's are being imported as string key names. So if I export entity with int ID of, for example, '62' , it gets imported as entity with string key name of '61' which screws up Django. Revelant bulkloader.yaml Fragment: property_map: - property: __key__ external_name: key export_transform: transform.key_id_or_name_as

Method interference in Google Cloud Endpoints with Google Eclipse Plugin

浪尽此生 提交于 2020-01-12 14:23:13
问题 I am experiencing a strange behavior while generating endpoints using the Google Appengine Eclipse plugin. I have an endpoint class with over 20 endpoint methods. When I first tried generating the endpoints for android I get the error Generating Cloud Endpoint has encountered errors and is not complete By way of troubleshooting, I comment out all the methods to find the culprits. What I found is a bit baffling. After uncommenting the 16th method, I get the error again. There are two methods

Method interference in Google Cloud Endpoints with Google Eclipse Plugin

我怕爱的太早我们不能终老 提交于 2020-01-12 14:20:49
问题 I am experiencing a strange behavior while generating endpoints using the Google Appengine Eclipse plugin. I have an endpoint class with over 20 endpoint methods. When I first tried generating the endpoints for android I get the error Generating Cloud Endpoint has encountered errors and is not complete By way of troubleshooting, I comment out all the methods to find the culprits. What I found is a bit baffling. After uncommenting the 16th method, I get the error again. There are two methods

Method interference in Google Cloud Endpoints with Google Eclipse Plugin

蓝咒 提交于 2020-01-12 14:20:17
问题 I am experiencing a strange behavior while generating endpoints using the Google Appengine Eclipse plugin. I have an endpoint class with over 20 endpoint methods. When I first tried generating the endpoints for android I get the error Generating Cloud Endpoint has encountered errors and is not complete By way of troubleshooting, I comment out all the methods to find the culprits. What I found is a bit baffling. After uncommenting the 16th method, I get the error again. There are two methods

Should I move my static resources from App Engine to Google Cloud Storage?

て烟熏妆下的殇ゞ 提交于 2020-01-12 14:14:34
问题 We have a web application in App Engine. I was wondering whether it is a good idea to move my static resources (i.e Images, CSS files, and JS files) out from App Engine and serve them from Google Cloud Storage. My thinking here is two-fold: 1) We can get the advantages of a CDN with Google Cloud Storage. We can even configure metadata for each file to set expiration headers, gzip compression, etc. Also, by serving files from different domains we can have browsers download more content in

How do I change the default format of log messages in python app engine?

孤街醉人 提交于 2020-01-12 14:08:16
问题 I would like to log the module and classname by default in log messages from my request handlers. The usual way to do this seems to be to set a custom format string by calling logging.basicConfig , but this can only be called once and has already been called by the time my code runs. Another method is to create a new log Handler which can be passed a new log Formatter , but this doesn't seem right as I want to use the existing log handler that App Engine has installed. What is the right way

How to populate my WTForm variables?

房东的猫 提交于 2020-01-12 12:24:52
问题 I'm enabling a function that can edit an entity. I want to populate the form with the variables from the datastore. How can I do it? My code doesn't populate the form: if self.request.get('id'): id = int(self.request.get('id')) ad = Ad.get(db.Key.from_path('Ad', id)) im = ad.matched_images editAdForm = AdForm(ad) if str(users.get_current_user()) == str(ad.user) or users.is_current_user_admin(): self.render_jinja('edit', form_url=blobstore.create_upload_url('/addimage'), admin=users.is_current

Google Endpoints - Android GoogleAuthIOException Tic Tac Toe - Removed clientIds

青春壹個敷衍的年華 提交于 2020-01-12 10:49:07
问题 I downloaded the Google Endpoints Tic Tac Toe example - the server code in Java. Just to quickly run it up, I removed the clientIds from the API definition, so I could quickly see it working in the API Explorer: @Api(name = "tictactoe", version = "v1") public class ScoresV1 { ... I could run the following method just fine using the API Explorer, with OAuth turned on and authenticating with my gmail accoumnt. I could see the "user" object set to that account in the debugger: @ApiMethod(name =