google-app-engine

Why am I getting a cast error in my Query using JDO on Google App Engine?

According to the Queries and Indexes doc you can go a query effectively identically (so far as I can tell) to this: PersistenceManager pm = PMF.get().getPersistenceManager(); try { Query q = pm.newQuery(App.class); q.setOrdering("name desc"); try { results = (ArrayList<App>) q.execute(); } finally { q.closeAll(); } } finally {...

Static files in (Java) App Engine not accessible.

The example documentation says that you simply need to place your files in war/ (or a subdirectory) and they should be accessible from the host (as long as they aren't JSPs or in WEB-INF). For example, if you place foo.css in war/ then you should be able to access it at http://localhost:8080/foo.css. However, this isn't working for me at...

Google App Engine - Task Queues vs Cron Jobs

The latest Google App Engine release supports a new Task Queue API in Python. I was comparing the capabilities of this API vs the already existing Cron service. For background jobs that are not user-initiated, such as grabbing an RSS feed and parsing it on a daily interval. Can and should the Task Queue API be used for non-user initia...

Full-text search on App Engine with Whoosh

I need to do full text searching with Google App Engine. I found the project Whoosh and it works really well, as long as I use the App Engine Development Environement... When I upload my application to App Engine, I am getting the following TraceBack. For my tests, I am using the example application provided in this project. Any idea of ...

Simple User management example for Google App Engine ?

Hi, I am newbie in Google App Engine. While I was going through the tutorial, I found several things that we do in php-mysql is not available in GAE. For example in dataStore auto increment feature is not available. Also I am confused about session management in GAE. Over all I am confused and can not visualize the whole thing. Please a...

Detecting first time login of user into application (Google Appengine)

My app requires users to login using their google account. I have this set in my App.yamp file: url: /user/.* script: user.py login: required Now when any user tries to access files under /user/secret.py he will need to authenticate via google, which will redirect the user back to /user/secret.py after successful authentication. ...

How do I query for entities that are "nearby" with the GeoPt property in Google App Engine?

How should I create a GQL query that returns the nearest entities (from my current location) based on their GeoPt property? Should I just created a 'distance' function that calculates for a set of entities with a reasonably close distance? Thanks ahead of time! ...

Dozer object on GAE/J

I'm trying to write application using GWT and GAE/J (Google AppEngine with Java). For my application i need to use DTO. In order to convert Pojo into JDO Entities I want to use Dozer library. So when i'm trying to convert object I'm getting following error: Jun 23, 2009 7:12:30 PM com.google.appengine.tools.development.ApiProxyLocalImpl...

Google App Engine cannot find gdata module

I can run a simple "Hello World" Google App Engine application on localhost with no problems. However, when I add the line "import gdata.auth" to my Python script I get "ImportError: No module named gdata.auth". I have installed the gdata module and added the following line to my .bashrc: export PYTHONPATH=$PYTHONPATH:/Library/Python/...

Does Key.from_path hit the datastore?

I have a list of key names that I want to bulk fetch (the key names are stored in a StringListProperty attached to an entity). My general plan was to do: usernames = userrefInstance.users # A collection of strings on another model. keys = [Key.from_path('User', key_name) for username in usernames] users = db.get(keys) My questio...

Google App Engine -- How fast is it

Hello, I have been visiting some sites hosted on GAE and I found them to be very slow. Pretty much all of them take longer than usual to load. Time: (in seconds) [ YSlow ] 9.9 giftag.com 3.1 hotskills.net 1.9 jeeyo.net 1.5 appspot.com Is it that App Engine Cloud is too slow, Bigtable is too slow ... or what? ...

Resize large images in App Engine

I've got an app on Google App Engine that will accept image uploads from users. The problem that I envision is that users will upload these images directly from their cameras, and file sizes are often greater than 1MB, which is the limit for the image API (which would be used to resize the images). What's the best way to accept the uplo...

Can a class be an Expando and Polymodel in Google App Engine?

If I create a PolyModel class, such as Person, can I create an Expando model under that Polymodel? For instance, a class Male(Person) that was also an Expando model? If so, how? Thanks! ...

google chart tutorial

What is good place to learn about google charts except ofcourse official google page on same and various things you can do with charting libraries on the web beside google? Any good place you been to on same topic? need to integrate in GAE app. ...

Task Queue API: ETA and Countdown

I love the new TaskQueue API. I have a question about the ETA/Countdown, if I set it a new Task to execute 10 minutes in the future and it is the only item in the queue - will it execute in roughly 10 minutes or will it execute straight away? ...

Create lists of multiple users as a model property in Google App Engine

I would like to create a Group model in Google App Engine and then have an attribute where I can create a list of UserReferences. The documentation said: "A property can have multiple values, represented in the datastore API as a Python list. The list can contain values of any of the value types supported by the datastore." Would I im...

Warning on Mac when use Dozer

I'm building application with GWT + GAE on my MAC. In this app i have DTO's and to convert from DTO to Persistent entities I'm using Dozer Library, its Mapper object. Everything compiles and runs fine on Windows but when I'm trying to run my app in hosted mode on MAC i'm getting following WARNING: The server is running at http://localho...

GAE:What are ways to authenticate users without using google auth service?

Hi I'm designing a site on google app engine and i think about a way of authenticating user wihtout redirecting them to google. My structure of website in yaml is like: - url: / script: /main.py - url: /some_page script: some_page.py so every page has it own mapping in yaml. Assuming that some pages will be accesible only to log...

Is fulltext search enabled on Google App Engine Java platform?

Seems only available in Django? But the info is not the latest ...

How to give initial value in modelform

How do i assign initial values to fields inside a ModelForm. eg. class Form1(forms.Form): title=forms.CharField(initial="hello") what will be the equivalent for this using modelForm whose basic syntax is something like: class Form2(djangoforms.ModelForm) class Meta: model=SomeModel fields=('title') What I am tryi...