google-app-engine

How to check if key exists in datastore without returning the object

Hello, I want to be able to check if a key_name for my model exists in the datastore. My code goes: t=MyModel.get_by_key_name(c) if t==None: #key_name does not exist I don't need the object, so is there a way (which would be faster and cost less resource) to ccheck if the object exist without returning it? I only know the...

Is long polling possible in Google App Engine?

I need to make application that needs to poll server often, but GAE has limitations on requests, so making a lot of requests could be very costly. Is it possible to use long polling and make requests wait for the maxium 30 seconds for changes? ...

opening file: Writing is invalid mode

Hello, When executing: path=os.path.dirname(__file__)+'/log.txt' log=open(path,"w",encoding='utf-8') I get: log=open(path,'w',encoding='utf-8') File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 1203, in __init__ raise IOError('invalid mode: %s' % mode) IOError: invalid mode: w I'm not sur...

Google App Engine with JRuby - can someone provide an overview of appengine-jruby, warble etc?

Hello there! I'm getting myself confused as to how to get a JRuby app cranking on App Engine. I know that you can get started using the appengine-jruby "gem" (Note: I'm a Java programmer, so this is all completely new to me). I've also seen some talk about Warbler, and am getting the impression that I could probably use Warbler someho...

How to insert bulk data in Google App Engine Datastore?

Hi All, I have some CSV files for cities,state and countries with their ids, names etc. I want to put all this data into Google app engine datastore. Can someone please suggest an efficient way of doing this on development server as well as on the production server? Thanks in advance. ...

django logging: log is not created

Hello, I'm running my app on the GAE development server, with app-engine-patch to run Django. One of my views is bugged , so I want to log everything that happens. I added in myapp.views: import logging LOG_FILENAME = '/mylog.txt' logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG) and my function is: def function(string...

AppEngine Bulk Upload List Property

Hi! I have a model with a list property. I have a csv that has each list data that looks like this. [u'1234567'] The list has only one item each. My bulkloader.yaml has configured import_transform: transform.none_if_empty(list). It uploads the above list property as [u'[', u'u', u"'", u'1', u'2', u'3', u'4', u'5', u'6', u'7', u"'", ...

Modeling Hierarchical Data - GAE

Hi, I'm new in google-app-engine and google datastore (bigtable) and I've some doubts in order of which could be the best approach to design the required data model. I need to create a hierarchy model, something like a product catalog, each domain has some subdomains in deep. For the moment the structure for the products changes less t...

Actionscript3 SSL sockets

Hey, In the application we are working on we have to send secured messages from a flash movie running in the browser to an app engine application. One good candidate would be SSL which app engine seems to somewhat support (not exactly sure). But is there any implementation for SSL sockets for actionscript 3 (since afaik as3 doesn't have...

Appengine - Reportlab PDF

Hello, I'm using Google appengine and want to generate a PDF with reportlab. The application works well and can generate PDF's like 'Hello World' and little else. But what I want is to fetch data from a form with the data that the user entered and generate PDF dynamically. Anyone can share a piece of code? I would be grateful. ...

Using Twill from Python to open a link: " 'module' object has no attribute 'Popen' " What is it?

Hello!!! I have downloaded and installed Python 2.5.4 on my computer (my OS is Windows XP), downloaded “Goggle App Engine Software Development Kit” and created my first application in Python, which was a directory named helloworld that contained a small python file with the same name (helloworld.py). Here are the contents of that small ...

Is it possible to get a list of all versions of an app ?

Hello, the title speaks for itself. I play with GAE and some of my apps have versions like (1,2,3,4 and dev). So, is there a way to get all of them, so I could use it in my app to generate links to different versions ? ...

VoteHandler in Google App Engine

I am trying to have this function limit a user to only one vote per image. However it currently lets all votes through. If I change "if existing_vote != 0:" to "if existing_vote == 0:" it lets no votes through. Thoughts? class VoteHandler(webapp.RequestHandler): def get(self): #See if logged in self.Session = Session() if ...

Java library to validate postal addresses entered by users in App Engine app?

At first I thought the com.google.appengine.api.datastore.PostalAddress class was going to provide some way of validating addresses entered by users in an App Engine app but I don't even know how to instantiate this class - it doesn't have a public constructor. Is there a Java library that could be used in an App Engine app to validate...

How can my AIR app communicate with my server?

I want my app to communicate with with server. I want the app to store something like notes and contacts. They can run the app on any system, and get their contacts on any machine by entering their username and password... As you can see authentication security of user's data is important. I am considering using Google App Engine as the...

Encoding problem in app engine when submitting multipart/form-data forms.

I have a simple form that submits a image to the blobstore and a title for the image. This works on my local devserver but when I deploy my code, non ascii letters in the title become garbled with some kind of mixture of ascii and hex. For example Ísland becomes =CDsland. Note, I am using <meta http-equiv="Content-Type" content="text/...

GAE in java: Get position in highscore database

So I am trying to implement a global highscore for my game in google apps engine java. The information I want to retrieve is twofold: Which position did the user place? How many percent of all records did he beat? The second question is solved if I solve the first one, and find a way to count the total number of rows in the database....

Query Google App Engine Datastore with Key.Id

I'm deploying a simple Java app to Google App Engine. I have a simple JPA Entity containing a Key as my generated ID. import javax.persistence.*; @Entity public class MyEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private com.google.appengine.api.datastore.Key key; ... Once I persisted this ob...

import javax.jdo.PersistenceManager; right approch under gae datastore?

Hello all! Is this the right aproch while using the datastore under Google App Engine? I have this super-class with the right includes: package gae.google.db.object; @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable="true") @Inheritance(strategy = InheritanceStrategy.NEW_TABLE) public class User{ @PrimaryKey...

Paypal integration with Google application engine-python

Hi all, I have to integrate paypal with my application which is built on app engine patch with python. I searched over the web and found some issues reported in paypal integration with google application engine like here: http://groups.google.com/group/google-appengine/browse_thread/thread/9059b0750c45703b/b1d0611dd4b04273 There is ...