class Content(object): __Security_checker__ = utils.SchemaChecker(IContent) __parent__ = None __name__ = "sample-content" field = None
class C(object): foo = u"c foo" bar = u"c bar" a = u"c a" b = u"c b" __Security_checker__ = utils.SchemaChecker(I) _baz = u"c baz" def getbaz(self): return self._baz def setbaz(self, v): self._baz = v
class FooBarAdapter(object): __used_for__ = IFoo def __init__(self, context): self.context = context def getbar(self): return self.context.foo def setbar(self, v): self.context.foo = v bar = property(getbar, setbar) __Security_checker__ = utils.SchemaChecker(IBar)
class Content(object): __Security_checker__ = utils.SchemaChecker(IContent) foo = 'Foo'
class Foo(object): __Security_checker__ = utils.SchemaChecker(IFoo) foo = u'Foo foo'