google-app-engine

Serving an image from my war directory?

Hi, I have a servlet which serves an image file which was stored in a blob. If the requested image can't be found, I'd like to server a static image I have included in my war directory. How do we do this? This is how I'm serving the blob images from the datastore: public class ServletImg extends HttpServlet { public void doGet(HttpSe...

does google-app-engine has "required_admin" method..

@required_admin def get(self): i want to use this method to make user must be admin. thanks ...

Carry success message through redirect after blobstore upload?

Hi, I'm saving an image as a blob using the following, but I'm not sure how to carry a message through the final redirect to display to the user: JSP file: <% BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService(); String action = blobstoreService.createUploadUrl("/servletimg"); %> <form method="POST" actio...

google app engine persistence and intranet app

Hi, Has anyone any tips with using gae on a project that could be easily switched from using the jpa persistence option (in the cloud) to running against a standard on-site sql server instance. I am starting a new project that will be hosted on gae or certain editions but there will be an enterprise version that will run on client sites...

google app engine (python) confusing class 'object has no attribute' error

I have a 2 classes. One looks like this: class Feed(db.Model): bid = db.StringProperty() title = db.StringProperty() url = db.StringProperty() datecreated = db.DateProperty(auto_now_add=True) voice = db.StringProperty() lastchecked = db.DateProperty(auto_now=True) language = db.StringProperty() active = d...

Batch put with pre-defined keys on Google App Engine

I would like to do a batch put of entities with pre-defined keys using the low-level api for Java. You can do a batch get: Map<Key,Entity> get(.Iterable<Key> keys) However the batch puts all seem to want to allocate their own keys: List<Key> put(Iterable<Entity> entities) Documentation page: http://code.google.com/appengine/docs...

how to read an excel file on google app engine

I am looking for java alternative for python library. Here is the question http://stackoverflow.com/questions/2360010/how-to-read-an-excel-file-on-google-app-engine ...

Spring Security 3 + Google App Engine tutorial

Hi, I google it but connot find a good tutorial both cover Spring Security and Google App Engine but does not cover maven. Do you know some tutorial like that? Thanks. ...

How will http server handle html5 web sockets?

I am reading a lot about HTML5 and I like the web sockets in particular because they facilitate bi-directional communication between web server and web browser. But we keep reading about chrome, opera, firefox, safari getting ready for html5. Which web server is ready to use web sockets feature? I mean, are web servers capable of initia...

Is there any ORM tools on google app engine (Java)?

Hi, everyone. I used Ruby and Rails before, and I enjoy Rails's ORM, which make me develop application very fast... ...(also make me reduce lots of SQL statement.) But now, I need to move from ROR to Google App Engine. Is there any ORM tools on that? Also, I heart that Google have some amazing tools called "Google Web Toolkit", can I tak...

Long app startup times (java), maybe using Slim3 to improve?

Hi, I'm getting close to completing an app engine project (java + jdo), and am a bit worried about startup times. When the app is 'cold', it can take a long time for app engine to load my app (more than 5 seconds) - this is bad because often times the user may just give up after waiting so long. There's a project called Slim3, which wr...

create a task to run after a time period in app engine?

I need to run 2 tasks around 2 minutes apart but need to insert them both at the same time into the queue. how do i do this? taskqueue.add('/task1', { 'args' : 'a' }) taskqueue.add('/task2', { 'args' : 'b' }) is there some way i can insert a time component into this execution? can you please illustrate with an example? ...

Wiping the datastore?

Hi, I'm working on an app engine project (java). I'm using the jdo interface. I haven't pushed the application yet (just running at localhost). Is there a way I can totally wipe my datastore after I publish? In eclipse, when working locally, I can just wipe the datastore by deleting the local file: appengine-generated/local_db.bin an...

Editing a Date field in Appengine Data Store Viewer

Does anyone know how edit a field with type 'Date' in the appengine data store viewer in production? It seems like it maps to an int field and I tried putting in the number of milliseconds since epoch but that didnt work. ...

Edit Text Field in Appengine Datastore Viewer

Does anyone know how edit a field with type 'Text' in the appengine data store viewer in production? ...

Reference ID in GAE

I have a feeling the answer is simple and documented, but I'm absolutely missing it: Is there a way, using Python and webapp through Google App Engine, to pass the id field of a record to the template? I'm fairly new to the app engine, and yes, I have searched all around the Google Documentation to find this. ...

Find out the index of an entity given some filters?

Hi, Is it possible to find out the index of an entity? For example, my users are creating thousands of Foos. I can locate an arbitrary Foo instance using its key, but I don't know its index compared to all other Foos. I'd like to figure out that "this is Foo 12 out of 20,000". I only have one sort order for Foos. Is something like that ...

How do I do a Rails style before_filter with Google App Engine?

The app is setup as a basic WSGI application. I'm just trying to call a function before the requestHandler is run. I would like something very much like the way before_filter works in Rails. Thanks. ...

How to get all the kinds in the google app engine datastore?

Hi, i'm using java to code for GAE, i've read through the GAE java low level api and can't find any answer to my question yet. I wanna know if there's a way where i can call a method/ do a JDOPL and it returns all the different kinds of entities in my datastore. Thanks! ...

How it works? Google app engine + Spring

Hi, I wonder how spring and google app engine work together I know that google app engine cannot run threads. I think spring is wroking with threads. (if i'm wrong, please correct) So how spring and google app engine work together. ...