google-app-engine

Google AppEngine/Java and existing DB

Is there a way to upload database contents to Google App Engine for Java, like the bulkuploader script in the Python version? If not, how would you get existing data into your GAE/J app? ...

appengine - how to get class_set on a selfreferencing polymodel?

If I have Class Base(polymodel.Model): parentItem = db.SelfReference() SubClassA(Base): ... SubClassB(Base): ... SubClassA and SubClassB can be parent/childs of the other. Id like to be able get the SubClassB items that reference SubClassA using the usual xxxx_set() method that is generated but it doesnt seem to work. subA.su...

importing gaeutilities or any other module by dev_appserver

I'm developing a gae application on a windows machine. to have session handling I downloaded gaeutilities and added its path (C:\Python25\Lib\site-packages\gaeutilities-1.2.1) to the registry ("PythonPath" item under python25). in my code this is how I import the gaeutilities Session class: from appengine_utilities.sessions import Sess...

Django Custom Template Tags In Google App Engine

I am trying to include the following Tag In Google App Engine Web Application: http://www.djangosnippets.org/snippets/1357/ Is there any configuration of this file to make it work with Google App Engine? Cause I followed the Django Template tutorials: http://docs.djangoproject.com/en/dev/howto/custom-template-tags/ and have this stru...

Usercreated column in AppEngine

Imagine you have a column called usercreated = db.ReferenceProperty(User) And you want this field to automaticly filled when first putted to store. Like this did for auto_date. Is this possible? ...

[Java] how to model a friends system with persistency layer?

Hi am i'm trying the new Java support for google app engine, and i am trying to make a persistency layer for all my objects. I am trying to model a friend connection but am running into problems. I use JPA to persist the objects and define my persistency objects with JPA annotations. My idea was to do the following: User Object: @E...

How do I bulkupload image BLOBs in Google App Engine?

I have a model which *I want* to contain an image blob. I have the images on my local filesystem, but due to the nature of my application, I need to get them in the datastore. Here's my model: class JeanImage(db.Model): type = db.StringProperty(required=True, choices=set(["main","front","back","detail"])) image = db.BlobProper...

Appengine - Possible to get an entity using only key string without model name?

I want to be able to have a view that will act upon a number of different types of objects all the view will get is the key string eg: agpwb2xsdGhyZWFkchULEg9wb2xsY29yZV9hbnN3ZXIYAww without knowing the model type, is it possible to retrieve the entity from just that key string? thanks ...

Generating unique and opaque user IDs in Google App Engine

I'm working on an application that lets registered users create or upload content, and allows anonymous users to view that content and browse registered users' pages to find that content - this is very similar to how a site like Flickr, for example, allows people to browse its users' pages. To do this, I need a way to identify the user ...

Easiest way to implement an online order tracking database

I've been asked by a client to make an online tracking system for work we do for them (we will be typesetting a high volume of books for this client). Basically, it would be a database showing the books we are currently working on, with information on what stage of the project we are at, and estimated completion dates. The only people wi...

How to debug Google App Engine scripts with PyScripter

The situation is as follows: I have downloaded the Google App Engine SDK. I have written my "helloworld" app that runs locally in my computer. I have to use PyScripter as IDE. I can't use Eclipse, that would not be a valid solution to my problem. In PyScripter, I have set a "Run Configuration", so that an instance of the server run...

django on Google Appengine

I came across 2 different modules for porting django to appengine. http://code.google.com/p/app-engine-patch/ http://code.google.com/p/google-app-engine-django/ Both seem to be compatible with django 1.0, The featured download of the latter is in Aug 08, whereas the former is Feb 09. What are the relative merits. What if I dont use...

cannot run appengine-admin on dev_server

I've decided to try out this project: http://code.google.com/p/appengine-admin/wiki/QuickStart For the sake of the experiment, I took the demo guest-book shipped with app-engine. The import park look like this: import cgi import datetime import wsgiref.handlers from google.appengine.ext import db from google.appengine.api import use...

Zipimport is not working

On localhost it worked easy. I send several django zip files to server: with django folder without django folder without pyc files But zipimport dont wonna work. Any suggestions? How you use it? ...

Windows Azure vs Amazon EC2 vs Google App Engine

From a developer point of view which platform would you consider for a large social web application? If you could provide some details on what you consider to be the strengths of which alternative it would be great. ...

Built in python hash() function

Windows XP, Python 2.5: hash('http://stackoverflow.com') Result: 1934711907 Google App Engine (http://shell.appspot.com/): hash('http://stackoverflow.com') Result: -5768830964305142685 Why is that? How can I have a hash function which will give me same results across different platforms (Windows, Linux, Mac)? ...

I have PHP running on Google App Engine - How do I use DB now?

I followed this to setup PHP on the Google appengine and it works great. Any suggestions on how we can use a database / datastore with this on GAE? ...

Google AppEngine: how to count a database's entries beyond 1000?

Duplicate of "how does one get a count of rows in a datastore model in google appengine?" I'm having big trouble. I want to know how many users I have... I did: users = UserStore.all() user_count=users.count() quite simple... But now I have more than 1000 users and this method continues to return 1000. Is there any other way of k...

How should I provide a hosted service on Google App Engine

If i want to rent space on my service which I in turn host on Google App Service, is there some Terms of Service i need to know about? Also, if I want to provide a service that should be customized for a company, say a Wiki that the company can tailor like their own with skins and even domains. Can that be done? Will I have to provide t...

How to get last inserted item's key in google app engine.

I am working with google app engine and python. I have a model with Items. Immediately after I insert an item with item.put() I want to get it's key and redirect to a page using this key something like, redirectUrl = "/view/key/%s/" % item.key self.redirect(redirectUrl) ...