google-app-engine

Assign a parent to an existing entity

一笑奈何 提交于 2020-01-06 08:25:19
问题 I have a datastore which is already populated with entities. However, they haven't been arranged into entity groups (a.k.a parent-child relationships). My entity Kinds are: team = Team.get_by_key_name('Plants') query = Plants.all() The plants haven't been assigned to the Plants team yet: query = Plants.all().ancestor(team) plants = query.fetch(50) # This will result in an empty list I would like to assign them to the team now: query = Plants.all() plants = query.fetch(50) for p in plants: #

Google App Engine - ImagesService.getServingUrl() fails to read image

青春壹個敷衍的年華 提交于 2020-01-06 08:13:26
问题 I'm receiving an image file through a HTTP request and storing it in the Blobstore. My code is along the lines of that found here: [https://developers.google.com/appengine/docs/java/blobstore/overview#Writing_Files_to_the_Blobstore][1]. When calling the function ImagesService.getServingUrl() on the blobkey for the image I had stored I get the message below: HTTP ERROR 500 Problem accessing /upload. Reason: Failed to read image Caused by: java.lang.IllegalArgumentException: Failed to read

Google App Engine - ImagesService.getServingUrl() fails to read image

淺唱寂寞╮ 提交于 2020-01-06 08:12:09
问题 I'm receiving an image file through a HTTP request and storing it in the Blobstore. My code is along the lines of that found here: [https://developers.google.com/appengine/docs/java/blobstore/overview#Writing_Files_to_the_Blobstore][1]. When calling the function ImagesService.getServingUrl() on the blobkey for the image I had stored I get the message below: HTTP ERROR 500 Problem accessing /upload. Reason: Failed to read image Caused by: java.lang.IllegalArgumentException: Failed to read

could not persist data of format map<string,Arraylist> in jdo

一个人想着一个人 提交于 2020-01-06 08:10:31
问题 iam trying to persist a Hashmap data in JDO. initially i created a Hashmap like Map<Integer,String> dat=new HashMap<Integer,String>(); and this worked perfectly and i was able to save data., but when i tried Map<Integer, ArrayList<String>> dat=new HashMap<Integer,ArrayList<String>>(); i got an error like this data: java.util.ArrayList is not a supported property type. am i using a non supported data type ?? is there a better alternative ?? i am just doing this for learning purpose ...so your

setup SSL on AppEngine… Assigned URLs “empty”

别等时光非礼了梦想. 提交于 2020-01-06 07:56:19
问题 I have setup Custom Domain "https://developers.google.com/appengine/docs/domain" I have uploaded "An SSL certificate and private key" (to create those i am using "XCA" on Ubuntu, available in the Ubuntu Software Center" ) Result ..."Assign all matching URLs" or "Add" Button is inactive. What are the details to follow setting up SSL for AppEgine Custom Domain? HELP: following the link on "http://support.google.com/a/bin/answer.py?hl=en&answer=2644386" refers to a login see: (moma single sign

Updating Play app from JDK 6 to 7 on GAE

懵懂的女人 提交于 2020-01-06 07:48:49
问题 I have been developing a web app using play framework for a while (using eclipse). I was using Play 1.2.3 and JDK6 then I had to change my development environment (new pc) where I use JDK7. My dependencies were: require: - play - play -> crudsiena 2.0.1 - play -> siena 2.0.5 - play -> secure - play -> gae 1.6 - provided -> opencsv 2.3 - provided -> ddlutils_siena 1.0 - provided -> gae_aws_sdk 1.1.7.1 #- provided -> play 1.2.4 #- provided -> httpclient 4.1.1 #- provided -> httpcore 4.1

App Engine Java 8 servlet 3.1 and web.xml

 ̄綄美尐妖づ 提交于 2020-01-06 07:26:02
问题 My problem is that I want to use servlet 3.1 annotations and also want to make sure all requests to the appengine app are https. In order to secure the url I need to use web.xml link to docs. Now if I have both web.xml and servlet 3.1 annotations it's all fine when testing locally. However, when the same app is deployed to Google Cloud Platform AppEngine it fails to recognise the annotations. When deploying that app to GCP Appengine without web.xml annotations are than recognised. Now the

App Engine Java 8 servlet 3.1 and web.xml

戏子无情 提交于 2020-01-06 07:25:41
问题 My problem is that I want to use servlet 3.1 annotations and also want to make sure all requests to the appengine app are https. In order to secure the url I need to use web.xml link to docs. Now if I have both web.xml and servlet 3.1 annotations it's all fine when testing locally. However, when the same app is deployed to Google Cloud Platform AppEngine it fails to recognise the annotations. When deploying that app to GCP Appengine without web.xml annotations are than recognised. Now the

Issue in domain verification on google cloud platform

做~自己de王妃 提交于 2020-01-06 07:12:03
问题 need help on issue with domain verification on Google cloud platform. I am trying to verify my appspot.comweb url using HTML Tag method. My html contains: <html> <head> <meta name="google-site-verification" content="39k6VaTYfQcrqMGTZ1LDYXxlR4T0gtGeOTce68idUE0" /> <title> This is title </title> </head> <body> Hello world </body> </html> I have named it as index.html and using this html file in main.py as below : import logging from flask import Flask,render_template from flask import request

Is there a way to delete all entities from a Datastore namespace Using Python3 (WITHOUT Dataflow)?

梦想的初衷 提交于 2020-01-06 07:07:42
问题 Need to wipe down a Datastore namespace before test data is uploaded during testing. Using Cloud Datastore API with Python3. I'm using Datastore with App Engine in Python3. For testing purposes, I have written a script using the Cloud Datastore API to upload several entities of different kinds to datastore. As this is a small project, at the moment there are only 4 kinds and only 2-3 entities per kind. I want to add to my pipeline a script to wipe down a particular namespace in Datastore that