google-app-engine

GAE Terms of Service Regarding Multiple Applications

4.4. You may not develop multiple Applications to simulate or act as a single Application or otherwise access the Service in a manner intended to avoid incurring fees. That's what GAE's ToS says here. My question is, would I be violating this by having my blogs, forums and etc. hosted as separate apps and putting them all on s...

How to reference subclasses of static Java classes with generics in Scala

I have this Java code: public class TestMapper extends AppEngineMapper<Key, Entity, NullWritable, NullWritable> { public TestMapper() { } // [... other overriden methods ...] @Override public void setup(Context context) { log.warning("Doing per-worker setup"); } } ...which I've converted to: class TestMa...

Transactions over very very large entity group

I am trying to design a data model which can hold a very large amount of data, does anyone with experience in large volumes of data have any feedback on this, ie: // example only, not meant to compile public class TransactionAccount { private long balance; private List<Transaction> transactions = new ArrayList<Transaction>(); ...

Querying for entities with missing properties in app engine Datastore?

I have a model which looks like this: class Example (db.Model) : row_num = db.IntegerProperty(required=True) updated = db.IntegerProperty() ... ... Now when i store values, I may not fill the value for the updated property every time, which implies that in some entities it may not exist. I want to construct a datastore query so ...

Most efficient way to iterate through entire datastore and set a default value to a modified schema?

I have an existing schema: class Example (db.Model) : row_num = db.IntegerProperty(required=True) updated = db.IntegerProperty() ... ... I have now updated this to : class Example (db.Model) : row_num = db.IntegerProperty(required=True) updated = db.IntegerProperty(default=0) ... ... However, there are over 2 million entiti...

Google app engine parsing xml more then 1 mb

Hi i need to parse xml file which is more then 1 mb in size, i know GAE can handle request and response up to 10 MB but as we need to use SAX parser API and API GAE has limit of 1 MB so is there way we can parse file more then 1 mb any ways. ...

how to get started with google app-engine?

I m starting to build python application in windows platform using google appengine whats the steps to debug and run my application ...

Need to order by properties in the reference property, any good solution?

Say I have 2 kind: class Account(db.Model): name = db.StringProperty() create_time = db.DataTimeProperty() last_login = db.DateTimeProperty() last_update = db.DataTimeProperty() class Relationship(db.Model) owner = db.ReferenceProperty(Account) target = db.ReferenceProperty(Account) type = db.IntegerProperty() I want...

Is there an online IDE for Google App Engine?

I am learning Google App Engine / Python and I love it. Unfortunately I am not allowed to use my own computer in the office and not allowed to install anything on the corporate machine. It would be so great to have an online IDE for Google App Engine where I could play with my Python code using any browser, including the one on my iPad....

error on localhost

hey, when i'm going to login i got the following error Traceback (most recent call last): File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 3199, in _HandleRequest self._Dispatch(dispatcher, self.rfile, outfile, env_dict) File "C:\Program Files\Google\google_appengine\google\appengin...

Google App Engine: Handlers and WSGI urls

Hello, I am new to GAE and I am creating an application with the webapp framework. I was wondering when do you set handlers in your app.yaml and when you define them in your WSGI? At first I thought you only have one main.py main file running the WSGIApplication but I notice if you want to use the GAE authorization you define that in ...

How to handle HTML Arrays with App Engine Python?

I'm stuck with this problem I made an HTML Array, but I can't read it out with Python. Is it even possible to do it in App Engine? I read it was possible in PHP. This is the html code: <label for="hashtags">Hashtags: </label><br/> {% for hashtag in stream.hashtags %} <input type="text" value="{{hashtag}}" name="hashtags[]" id="hash...

App Engine - ReferenceProperty and custom indexes

This is a follow-up question to Drew Sears' answer to this discussion: http://stackoverflow.com/questions/3314721/app-engine-datastore-data-model-question If I model bucket as a reference property in the object kind and say I want to query for objects in bucket 1234 with size > 1000. My query will look like "where bucket = key('Bucket'...

Google App Engine Java Send Mail from alternate email Address

Is there a way to change the From email address to another email address in google app engine. Right now I want to send from addresses in my domain that is linked to google app engine, not the email address or the main address. ie: my account address is [email protected] but I want the email to come from [email protected]. thanks, ...

Trouble with query when my object has a property name starting with new (newStatus)

I have a property oldStatus and newStatus in my object and when I try to run a query on the object where newStart = approved. I am getting an error. Seems like the newStatus is being treated as new Status() and getting an exception that object Status not found. Anyone with similar issue? and possible solution. Query query = pm.newQu...

Entity group reloading issue and losing changes (GAE)

I have following model: @PersistenceCapable(detachable="true") public class User { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Persistent(defaultFetchGroup = "true", mappedBy="owner") @Element(dependent = "true") private List<Offer> offers; @Persistent(defaultFetc...

Between query equivalent on App Engine datastore?

I have a model containing ranges of IP addresses, similar to this: class Country(db.Model): begin_ipnum = db.IntegerProperty() end_ipnum = db.IntegerProperty() On a SQL database, I would be able to find rows which contained an IP in a certain range like this: SELECT * FROM Country WHERE ipnum BETWEEN begin_ipnum AND end_ipnum o...

How do i declare a timeout using urllib2 on Google App Engine?

I'm aware that urllib2 is available on Google App Engine as a wrapper of Urlfetch and, as you know, Universal Feedparser uses urllib2. Do you know any method to set a timeout on urllib2 ? Is timeout parameter on urllib2 been ported on Google App Engine version? I'm not interested in method like: rssurldata = urlfetch(rssurl, deadline=...

How do I access data programatically (load a pickled file) that is stored as a static file?

how is this solution I am using now: I have a 1MB .dbf file in the same directory of all my .py modules. In main.py I have import tools In tool.py code is : the_list_that_never_changes = loadDbf(file).variables['CNTYIDFP']. So the_list_that_never_changes is only loaded once and is always in memory ready to be used...correct? ...

How do I access the app engine admin interface when loading jetty in the Clojure repl

Is there a way to get to the admin interface if I'm not using the dev_appserver.sh script and instead loading up jetty myself? I'm doing this so that I can use the Clojure repl during development. While my application works as expected, there is nothing handling the /_ad/admin requests and so I can't get to the data store viewer or look...