class Content(object):

    __Security_checker__ = utils.SchemaChecker(IContent)

    __parent__ = None
    __name__ = "sample-content"

    field = None
Ejemplo n.º 2
0
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
Ejemplo n.º 3
0
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)
Ejemplo n.º 4
0
class Content(object):
    __Security_checker__ = utils.SchemaChecker(IContent)
    foo = 'Foo'
Ejemplo n.º 5
0
class Foo(object):

    __Security_checker__ = utils.SchemaChecker(IFoo)

    foo = u'Foo foo'