Did I find the right examples for you? yes no

All Samples(41)  |  Call(37)  |  Derive(0)  |  Import(4)

src/i/r/ironic-HEAD/ironic/api/controllers/v1/types.py   ironic(Download)
class JsonPatchType(wtypes.Base):
    """A complex type that represents a single json-patch operation."""
 
    path = wtypes.wsattr(wtypes.StringType(pattern='^(/[\w-]+)+$'),
                         mandatory=True)
    op = wtypes.wsattr(wtypes.Enum(str, 'add', 'replace', 'remove'),

src/c/e/ceilometer-HEAD/ceilometer/api/controllers/v2.py   ceilometer(Download)
    other alarms"""
 
    time_constraints = wtypes.wsattr([AlarmTimeConstraint], default=[])
    """Describe time constraints for the alarm"""
 

src/w/s/WSME-0.6/wsme/__init__.py   WSME(Download)
from wsme.api import signature
from wsme.rest import expose, validate
from wsme.root import WSRoot
from wsme.types import wsattr, wsproperty, Unset
 

src/w/s/wsme-HEAD/wsme/__init__.py   wsme(Download)
from wsme.api import signature
from wsme.rest import expose, validate
from wsme.root import WSRoot
from wsme.types import wsattr, wsproperty, Unset
 

src/w/s/WSME-0.6/wsme/tests/test_types.py   WSME(Download)
        class ABCDType(object):
            a_list = types.wsattr([int], name='a.list')
            astr = str
 
        types.register_type(ABCDType)
        class MyType(object):
            a = types.wsattr(int)
 
        types.register_type(MyType)
 
        class A(object):
            bs = types.wsattr(['B'])
 
        class B(object):
            i = int
        class A(object):
            b = types.wsattr('B')
 
        class B(object):
            a = A
        class B1(types.Base):
            b2 = types.wsattr('B2')
 
        class B2(types.Base):
            b2 = types.wsattr('B2')

src/w/s/wsme-HEAD/wsme/tests/test_types.py   wsme(Download)
        class ABCDType(object):
            a_list = types.wsattr([int], name='a.list')
            astr = str
 
        types.register_type(ABCDType)
        class MyType(object):
            a = types.wsattr(int)
 
        types.register_type(MyType)
 
        class A(object):
            bs = types.wsattr(['B'])
 
        class B(object):
            i = int
        class A(object):
            b = types.wsattr('B')
 
        class B(object):
            a = A
        class B1(types.Base):
            b2 = types.wsattr('B2')
 
        class B2(types.Base):
            b2 = types.wsattr('B2')

src/w/s/WSME-0.6/wsme/tests/test_api.py   WSME(Download)
        class ComplexType(object):
            attr = wsme.types.wsattr(int, mandatory=True)
 
        class MyRoot(WSRoot):
            @expose(int, body=ComplexType)
        class ComplexType(object):
            attr = wsme.types.wsattr(int, readonly=True)
 
        class MyRoot(WSRoot):
            @expose(int, body=ComplexType)
        class ComplexType(object):
            attr = wsme.types.wsattr(wsme.types.Enum(str, 'or', 'and'),
                                     default='and')
 
        class MyRoot(WSRoot):
        class Version(object):
            number = wsme.types.wsattr(wsme.types.Enum(str, 'v1', 'v2'),
                                       mandatory=True)
 
        class MyWS(WSRoot):

src/w/s/wsme-HEAD/wsme/tests/test_api.py   wsme(Download)
        class ComplexType(object):
            attr = wsme.types.wsattr(int, mandatory=True)
 
        class MyRoot(WSRoot):
            @expose(int, body=ComplexType)
        class ComplexType(object):
            attr = wsme.types.wsattr(int, readonly=True)
 
        class MyRoot(WSRoot):
            @expose(int, body=ComplexType)
        class ComplexType(object):
            attr = wsme.types.wsattr(wsme.types.Enum(str, 'or', 'and'),
                                     default='and')
 
        class MyRoot(WSRoot):
        class Version(object):
            number = wsme.types.wsattr(wsme.types.Enum(str, 'v1', 'v2'),
                                       mandatory=True)
 
        class MyWS(WSRoot):

src/w/s/WSME-0.6/wsme/tests/protocol.py   WSME(Download)
class NestedOuter(object):
    inner = NestedInner
    inner_array = wsme.types.wsattr([NestedInner])
    inner_dict = {wsme.types.text: NestedInner}
 
        self.attr_2 = v2
 
    attr_1 = wsme.types.wsattr(int, name='attr.1')
    attr_2 = wsme.types.wsattr(int, name='attr.2')
 

src/w/s/wsme-HEAD/wsme/tests/protocol.py   wsme(Download)
class NestedOuter(object):
    inner = NestedInner
    inner_array = wsme.types.wsattr([NestedInner])
    inner_dict = {wsme.types.text: NestedInner}
 
        self.attr_2 = v2
 
    attr_1 = wsme.types.wsattr(int, name='attr.1')
    attr_2 = wsme.types.wsattr(int, name='attr.2')
 

  1 | 2  Next