google-app-engine

java.lang.NoClassDefFoundError error when I try to instantiate the GCS Service

主宰稳场 提交于 2020-02-05 04:05:07
问题 I am very new to java/Android development. My IDE of choice is Android Studio. Essentially I need to upload images/vidoes clips and audio clips to GCS. I am instantiating the service like this " final GcsService gcsService = >GcsServiceFactory.createGcsService(RetryParams.getDefaultInstance());" When I run the app I get the following error java.lang.NoClassDefFoundError: com.google.appengine.api.utils.SystemProperty at >com.google.appengine.tools.cloudstorage.GcsServiceFactory

How do I get the key for the current record in GAE ndb in a Python for loop?

我与影子孤独终老i 提交于 2020-02-03 16:25:13
问题 I currently have a web page that presents a list of records from a datastore with an edit link. I want to convert this from db. to ndb. I am a Python and GAE newbie. The current code = <tbody> {% for listtype in listtypes %} <tr> <td> {{ listtype.ListTypeName }} </td> <td><a href ="/listtypes/edit/{{ listtype.key().id() }}">edit </a></td> </tr> {% endfor %} </tbody> Then on the .py side, I have: def post(self, listtype_id): iden = int(listtype_id) listtypes = db.get(db.Key.from_path(

How do I get the key for the current record in GAE ndb in a Python for loop?

放肆的年华 提交于 2020-02-03 16:24:11
问题 I currently have a web page that presents a list of records from a datastore with an edit link. I want to convert this from db. to ndb. I am a Python and GAE newbie. The current code = <tbody> {% for listtype in listtypes %} <tr> <td> {{ listtype.ListTypeName }} </td> <td><a href ="/listtypes/edit/{{ listtype.key().id() }}">edit </a></td> </tr> {% endfor %} </tbody> Then on the .py side, I have: def post(self, listtype_id): iden = int(listtype_id) listtypes = db.get(db.Key.from_path(

Anyone else encountering “unknown error” when Initializing Cloud Engine?

谁说胖子不能爱 提交于 2020-02-03 05:43:07
问题 I am trying to launch an instance of Discourse on Google's Cloud Platform using their recently released "Launcher" (https://cloud.google.com/launcher/#/details/bitnami-launchpad:discourse?q=discourse) It is able to create a new project, but during the step "Initializing Cloud Engine" it fails -- citing "Unknown error." as the reason. Is anyone else experiencing this? Know how to get around it? 回答1: Add billing information to account and your problem should be resolved. 回答2: I had to generate

How to do a database lock in AppEngine (GAE)?

流过昼夜 提交于 2020-02-03 05:40:28
问题 In GAE, I've got a table full of "one offs" -- things like "last-used sequence number" and the like that don't really fall into other tables. It's a simple String-key with String-value pair. I've got some code to grab a named integer and increment it, like so: @PersistenceCapable(detachable="true") public class OneOff { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Persistent private String dataKey; @Persistent private String value; public OneOff

Speeding up templates in GAE-Py by aggregating RPC calls

不打扰是莪最后的温柔 提交于 2020-02-02 14:37:52
问题 Here's my problem: class City(Model): name = StringProperty() class Author(Model): name = StringProperty() city = ReferenceProperty(City) class Post(Model): author = ReferenceProperty(Author) content = StringProperty() The code isn't important... its this django template: {% for post in posts %} <div>{{post.content}}</div> <div>by {{post.author.name}} from {{post.author.city.name}}</div> {% endfor %} Now lets say I get the first 100 posts using Post.all().fetch(limit=100) , and pass this list

How to Bypass Local Login Screen with Oauth2 and GAE

我怕爱的太早我们不能终老 提交于 2020-02-02 12:31:11
问题 I am working with the Oauth2 Decorator provided by Google. Right now I am just trying to do a very simple login via Oauth2 to Google using GAE. I am running locally for test purposes and have been successful in authenticating with Google; however, prior to the Google screen for authentication it always presents me with a local login screen running on localhost (//localhost:14080/_ah/login?continue=http%3A//localhost%3A14080/). I am not sure why I am getting this local login screen which does

User Sign-out: clearing the default Google account does not cause the account picker to show up in Android app

做~自己de王妃 提交于 2020-02-02 10:32:31
问题 I followed the below link to implement a "sign out" button in my android app, which uses a Google API client. However, upon connecting the google api again, the user is not presented with an account picker. It looks like the value of her/his original choice is somehow still cached perhaps. I've been trying to figure this out for a few hours. Any and all ideas very welcome. Thank you. https://developers.google.com/+/mobile/android/sign-in if (mGoogleApiClient.isConnected()) { Plus.AccountApi

User Sign-out: clearing the default Google account does not cause the account picker to show up in Android app

家住魔仙堡 提交于 2020-02-02 10:32:28
问题 I followed the below link to implement a "sign out" button in my android app, which uses a Google API client. However, upon connecting the google api again, the user is not presented with an account picker. It looks like the value of her/his original choice is somehow still cached perhaps. I've been trying to figure this out for a few hours. Any and all ideas very welcome. Thank you. https://developers.google.com/+/mobile/android/sign-in if (mGoogleApiClient.isConnected()) { Plus.AccountApi

User Sign-out: clearing the default Google account does not cause the account picker to show up in Android app

戏子无情 提交于 2020-02-02 10:32:25
问题 I followed the below link to implement a "sign out" button in my android app, which uses a Google API client. However, upon connecting the google api again, the user is not presented with an account picker. It looks like the value of her/his original choice is somehow still cached perhaps. I've been trying to figure this out for a few hours. Any and all ideas very welcome. Thank you. https://developers.google.com/+/mobile/android/sign-in if (mGoogleApiClient.isConnected()) { Plus.AccountApi