diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2006-12-05 16:08:03 -0500 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2006-12-05 16:08:03 -0500 |
commit | ea15510609d1516000daa8a685731df5d549bfba (patch) | |
tree | 123012cb2e0d0d31c3b32977b870a08966859835 /Bugs-Everywhere-Web/beweb/json.py | |
parent | 43fe901fa3f239b57e2343fbca322f2f5a91320f (diff) | |
download | bugseverywhere-ea15510609d1516000daa8a685731df5d549bfba.tar.gz |
Mostly upgrade to turbogears 1.0b1
Diffstat (limited to 'Bugs-Everywhere-Web/beweb/json.py')
-rw-r--r-- | Bugs-Everywhere-Web/beweb/json.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Bugs-Everywhere-Web/beweb/json.py b/Bugs-Everywhere-Web/beweb/json.py new file mode 100644 index 0000000..6e100c3 --- /dev/null +++ b/Bugs-Everywhere-Web/beweb/json.py @@ -0,0 +1,13 @@ +# This module provides helper functions for the JSON part of your +# view, if you are providing a JSON-based API for your app. + +# Here's what most rules would look like: +# @jsonify.when("isinstance(obj, YourClass)") +# def jsonify_yourclass(obj): +# return [obj.val1, obj.val2] +# +# The goal is to break your objects down into simple values: +# lists, dicts, numbers and strings + +from turbojson.jsonify import jsonify + |