freeipa/ipa-server/ipa-gui/ipagui/json.py
kmccarth@dhcp-172-16-25-136.sfbay.redhat.com 728e44833c Addiing initial turbogears web gui.
Contains simple user add, list, and view pages.
2007-08-12 04:53:18 -07:00

11 lines
311 B
Python

# A JSON-based API(view) for your app.
# Most rules would look like:
# @jsonify.when("isinstance(obj, YourClass)")
# def jsonify_yourclass(obj):
# return [obj.val1, obj.val2]
# @jsonify can convert your objects to following types:
# lists, dicts, numbers and strings
from turbojson.jsonify import jsonify