google-app-engine

unable to send mail with zip attachment over google app engine

Hi, I tried sending an e-mail with a pdf attachment over google app engine and it worked. I then used the same code with a zip file. The recipient didnt receive the mail. When I checked the logs in Google App Engine, no errors were reported either. What could be going wrong? Can someone please tell me if it is possible to send zip files ...

Google App Engine (Java) + Spring managed PersistenceManager

Hi, I've got kinda problem with JDO persistence of a list of just retrieved objects. What I want to do is to: Fetch list of "Orders" Modify one property "status" Make bulk update of "Orders" What I've got so far is "Object with id ... is managed by a different Object Manager". But wait, I haven't faced such a problem without Spring...

Determine AppEngine for Java environment programmatically

Is there a way to tell programmatically at run-time whether a Google App Engine application is running locally vs. hosted? I'm looking for a way to call some custom stub code when running in a local development environment and make different calls when running hosted. ...

Google App Engine Datastore - Is this method fast enough? ( for 500k users )

Let's say we have: class User(db.Model): nickname = db.StringProperty() and we have 500k entities in User, each with a unique nickname. and I now want to add one more entity, and it must be a unique nickname. So I run this: to_check = User.gql("WHERE nickname = :1",new_nickname).get() if to_check is None: # proceed to create en...

i *must* store third party credentials in my database. best way?

My app must read an SSL url from a third party. How do I best store the third party credentials in my own database, which protects the third party credentials from being compromised? Consider both absolute security and practicality. One-way hashing the credentials is not useful as I must restore credentials to plaintext for the SSL call....

is my google app engine deployed source code secure?

I'm thinking about good ways to store third party credentials, which basically means there needs to be a secret somewhere, either in code or data. I'm deploying on google app engine. If the 'secret' was something like pw_passphrase = sha2(username + 'global-password') pw_plaintext = aes_decrypt(pw_passphrase, pw_ciphertext) can I dep...

trying to retrieve file from blobstore and send it as mail attachment using google app engine

I am trying to design an application that would require me to retrieve data stored in blobstore and send it as attachment. Does google app engine allow this? From the documentation, i could not find a way to retrieve data from blobstore for processing within the app.. can someone please tell me how to accomplish this? Code examples and/...

GAE/J Low-level API: FetchOptions usage

What should I know about FetchOptions withLimit, prefetchSize and chunkSize? The docs say the following: prefetchSize is the number of results retrieved on the first call to the datastore. chunkSize determines the internal chunking strategy of the Iterator returned by PreparedQuery.asIterator(FetchOptions) ... ...

What is the best way to profile/optimize google app engine application?

Currently I am working on new App Engine application. Unfortunately it seems that my application uses to lot of resources even for relatively small user number. So I need to determine its bottle necks and optimize them. ...

What is the best Java text indexing library for Google App Engine?

To the moment I know that compass may handle this work. But indexing with compass looks pretty expensive. Is there any lighter alternatives? ...

Reasons NOT to use App Engine

Lately I've been reading a lot of information about App Engine; the Google service that looks very promising to me. However, it all seems too good to be true. Call me a negative person, but I would like to know any reasons NOT to use App Engine. This is programmers related, since I'm asking as in the programmer point of view. I just wa...

google-app-engine-django loaddata doesn't seem to work, not datastore on filesystem

I'm working on a Django AppEngine application using the AppEngine Django helper (google-app-engine-django), and I'm trying to create some initial data to load into my datastore. Here's my directory structure: . ./__init__.pyc ./index.yaml ./api ./api/__init__.py ./api/models.py ./api/views.py ./api/urls.py ./appengine_django ./manage.p...

How to get a Blob size? (Python Google App Engine)

http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html#Blob ...

IntelliJ 9 and appengine. Library shows in the settings, but, does not get packaged to the exploded war artifact that intelliJ creates

I am building a sample app for google appengine using intelliJ 9 I am trying to add an apache library to my project. In the setting it is added and shows fine. I am able to import the apache classes while coding and there are no errors. However, when I ask intelliJ to run the project (it deploys it in the local appengine after "making"...

AuthToken from AccountManager in Android Client No Longer Working

I'm pretty exasperated. I'm attempting to build a turn-based multiplayer online game for Android using Google App Engine in Java as the server. They seem like a perfect fit. Android requires a Google account, and GAE uses a Google account for authentication, while being free and scalable. So before the holidays I was able to get authen...

Is there a way to have a non-persistent field in GAE/J using JDO?

I intend questions not to be a child since I had to manipulate it independently, and I don't want to persist the questions field, I would to fill it up by retrieving the questions manually. Here is the code. Questionnaire.java @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Questionnaire{ //supposedly ...

sharing objects between module in GAE

To share a state(e.g. user) between a module in django people sometime use thread local storage, but as google app engine follows CGI standard and keeps state of a request in os.environ , can I share objects between two modules just by setting it e.g. mod1.my_data = {} and now any other module can get handle to my_data? without worryin...

How do I query in GQL using the entity key

How do I write a query against the entity key using GQL in the Google App Engine Data Viewer ? In the viewer, the first column (Id/Name) displays as name=_1, in the detail view it shows the key as Decoded entity key: Programme: name=_1 Entity key: agtzcG9................... This query does not work: SELECT * FROM Programme where na...

Implement auto_current_user_add when using Django's User table

I have an AppEngine app that I'm migrating to run in Django, using app-engine-patch to get all the goodness of Django - particularly the Admin interface. One of my models looks like (partially) this: class Request(db.Model): requestor = db.UserProperty(auto_current_user_add=True) When I display a form based on this model I don't di...

On the google app engine, how do I implement database Transactions?

I know that the way to handle DB transactionality on the app engine is to give different entities the same Parent(Entity Group) and to use db.run_in_transaction. However, assume that I am not able to give two entities the same parent. How do I ensure that my DB updates occur in a transaction? Is there a technical solution? If not, is ...