![]() git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3543 fd906abe-77d9-0310-91a1-e0d9ade77398 |
||
---|---|---|
.. | ||
z2 | ||
__init__.py | ||
json.py | ||
README.txt | ||
tests.py | ||
traversal.py |
============================== Resource-oriented Architecture ============================== ($Id$) >>> from zope import component >>> from zope.publisher.browser import TestRequest Providing object data in JSON format ==================================== >>> class Demo(object): ... def __init__(self, name): ... self.name = name >>> from cybertools.roa.json import JSONView >>> obj = Demo('test') >>> jsv = JSONView(obj, TestRequest())