cybertools/roa
2019-04-26 17:42:10 +02:00
..
z2 work in progress: REST/JSON handling 2009-09-08 07:16:49 +00:00
__init__.py new package roa / resource-oriented architecture implementation, using JSON format for message exchange 2009-08-29 15:04:42 +00:00
json.py work in progress: REST/JSON handling 2009-09-08 07:16:49 +00:00
README.txt make doctest pass - needs to be extended later 2009-09-04 12:39:35 +00:00
tests.py fix tests/doctests according to current ZTK and BlueBream versions 2019-04-26 17:42:10 +02:00
traversal.py work in progress: REST/JSON handling 2009-09-08 07:16:49 +00:00

==============================
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())