Hi Elias,
As we develop our AppEngine apps, we are abstracting some of the code
that we are using to work with JSON. This might help. We are still
work from the JSON loads
Your model classes will need to subclass JSONSerializableModel
from django.utils import simplejson
class JSONSerializableModel(db.Model):
def from_json(self):
pass
def to_json(self):
jsonify_props = { }
for property_name, property_type in self.properties().iteritems():
jsonify_props[property_name] = getattr(self, property_name)
return simplejson.dumps(jsonify_props)
> --
>
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> To post to this group, send email to
google-a...@googlegroups.com.
> To unsubscribe from this group, send email to
google-appengi...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=.
>
>
>
--
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)