class Content(object):

    __Security_checker__ = utils.SchemaChecker(IContent)

    __parent__ = None
    __name__ = "sample-content"

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

    __Security_checker__ = utils.SchemaChecker(IFoo)

    foo = u'Foo foo'