
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3530 fd906abe-77d9-0310-91a1-e0d9ade77398
21 lines
475 B
Text
21 lines
475 B
Text
==============================
|
|
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())
|