google-app-engine

How to store child objects on GAE using JDO from Scala

Hi, I'm have a parent-child relation between 2 classes, but the child objects are never stored. I do get an warning: "org.datanucleus.store.appengine.MetaDataValidator checkForIllegalChildField: Unable to validate relation net.vermaas.kivanotify.model.UserCriteria.internalCriteria" but it is unclear to me why this occurs. Already tri...

How do I read RSS from Google App Engine? Getting JDOM could not create a SAX parser

I am trying to write a simple Google App Engine website that reads an external RSS feed. I am using ROME with JDOM, however I am getting the impression that ROME is not compatible with Google App Engine and how you may fetch data. ROME uses the build method of the SyndFeedInput class, but I cannot find any way to how to connect this wit...

Using Property Builtin with GAE Datastore's Model

I want to make attributes of GAE Model properties. The reason is for cases like to turn the value into uppercase before storing it. For a plain Python class, I would do something like: Foo(db.Model): def get_attr(self): return self.something def set_attr(self, value): self.something = value.upper() if value != None...

GAE Chat Data Persistance in Memcache

I'm writing a chat feature (like the Faceboook.com one) for a Google App Engine site. I need a way to keep track of what users have new messages. I'm currently trying to use Memcache: class Message(): def __init__(self, from_user_key, message_text) self.from_user_key = from_user_key self.message_text = message_text ...

App engine index building stalled stuck

Hi, I am having a problem with indexes building in my App Engine application. There are only about 200 entities in the indexes that are being built, and the process has now been running or over 24 hours. My application name is romanceapp. Is there any way that I can re-start or clear the indexes that are being built? Thank you and ki...

500 error when deploying django-testapp to app-engine using django-nonrel

I'm trying to get up and running with the django-testapp on app engine. I've gotten it working fine in my development environment, but I'm getting 500 server errors when I deploy it to app engine. Here's what I'm doing: Per http://www.allbuttonspressed.com/blog/django/2010/01/Native-Django-on-App-Engine#disqus_thread hg clone http...

How to solve the jpa error?

i created one web application for accessing google bigtable. but i shows the following error how to solve this Description Resource Path Location Type Your Web Application Project must be configured to use a JDK in order to use JSPs. guestbook.jsp /cftljpa/war Unknown Google App Engine Problem how to solve this ...

Google Apps Engine: Memcache/JCache only works during the expire time

I am using jsr107 JCache in Google Apps Engine to save website data. My code looks like: public static String read(String link, boolean UTF8) throws Exception { URL url = new URL(link); String cached = CacheLogic.instance().get(link); if (!StringUtil.isEmpty(cached)) { return cached; } // Here i save the...

facebook iframe stream.Publish cannot close dialog or skip

am pulling my hair over this :( spent 10 hrs but nothing came out I read this thread http://forum.developers.facebook.com/viewtopic.php?pid=198128 but it didn't help much. I'm running a local dev App Engine server ( localhost:8080 ) iframe app so I have a couple of problems. 1) on safari 4.0.4, the publish story dialog comes up nice...

JDO Queries: Is it possible to filter using complex objects?

Hi, I'm quite new to JDO and wanted to ask if it is possible to filter using complex objects. I know that you can do something like this: Query q = pm.newQuery(MyClass.class, "field1 < value"); q.declareParameters("int value"); List results = q.execute(205); Iterator iter = results.iterator(); But assume I have the following situatio...

Interacting with google appengine from C#

I'm writing a google appengine application, which stores data and has a web front end. I want to be ableto pull down this data in a C# program. This means I need to authenticate with the site (users must be logged in to view the data). How can I authenticate like this? I tried setting credentials on the WebClient but I keep getting the g...

Uploading a HTML file to Google App Engine - getting 405

I'm trying to do a simple echo app using Python. I want to submit a file with a POST form and echo it back (an HTML file). Here's the handlers section of the YAML I'm using: handlers: - url: /statics static_dir: statics - url: .* script: main.py It's basically the hello world example in main.py and I added a directory to host m...

GAE Task Queue oddness

I have been testing the taskqueue with mixed success. Currently I am using the default queue, in default settings ect ect.... I have a test url setup which inserts about 8 tasks into the queue. With short order, all 8 are completed properly. So far so good. The problem comes up when I re-load that url twice under say a minute. Now watc...

What exception would google app engine return if tried to add data in datastore that is already full

What exception would google app engine return if tried to add data in datastore that is already full? ...

Google app engine database values not incrementing

Here is some code that is not working how it is supposed to work. Every time the database is queried, I get either a 0 or 1 value for the options, and the values in database do not increment, even though as as you can see, in line 86 and 89, the values are being incremented. Any idea what's going wrong here? I am using Django on Google A...

urlfetch.fetch got missed content within script tag of html in app engine

in my app, when I use urlfetch.fetch function to fetch a specified url, I found the content I got is empty for some special html codes. for example, the url: http://www.club.cn.sodexo.com/node/5071 in real html source, the codes including: <div class="content"> <div style="width: 219px; height: 262px;" id="gmap-auto3map-gmap0" class="...

Empty list in appengine datastore: java vs python

I have the following java model class in AppEngine: public class Xyz ... { @Persistent private Set<Long> uvw; } When saving an object Xyz with an empty set uvw in Java, I get a "null" field (as listed in the appengine datastore viewer). When I try to load the same object in python (through remote_api), as defined by the follow...

How to pass data from Google App Engine(Python) to Flex 4 application

I am using python and webapp framework in app engine for backend and flex 4 for front end. I would like to pass a string form backend to front end, so i write the following code in the main.py: class MainPage(webapp.RequestHandler): def get(self): userVO = "test" template_values = { 'url': self.request.uri, 'userVO': userV...

Reverse proxy Google App Engine and Google Accounts authentication.

I have requirements to run a "walled garden" wifi portal page that should be hosted on App Engine. Unfortunately, the captive portal software can only whitelist by IP, requiring that we setup a nginx server that reverse proxies to appname.appspot.com. The app also has authentication via Google Accounts. What is the best way to handle ...

Django and Google App Engine Helper not finding the ipaddr module.

I'm trying to get Django running on GAE using this tutorial. When I run python manage.py runserver I get the stacktrace below. I'm new to both django and python so I don't know what my next steps are (This is Ubuntu Jaunty btw). It seems django isn't finding the GAE module ipaddr which comes with SDK 1.3.1. How do I get django to find ...