Did I find the right examples for you? yes no

All Samples(50)  |  Call(46)  |  Derive(0)  |  Import(4)

src/w/s/WSME-0.6/wsmeext/sphinxext.py   WSME(Download)
    def import_object(self):
        if super(TypeDocumenter, self).import_object():
            wsme.types.register_type(self.object)
            return True
        else:

src/w/s/wsme-HEAD/wsmeext/sphinxext.py   wsme(Download)
    def import_object(self):
        if super(TypeDocumenter, self).import_object():
            wsme.types.register_type(self.object)
            return True
        else:

src/w/s/WSME-0.6/wsme/tests/test_types.py   WSME(Download)
            afloat = float
 
        types.register_type(Flat)
 
        assert len(Flat._wsme_attributes) == 4
    def test_private_attr(self):
        class WithPrivateAttrs(object):
            _private = 12
 
        types.register_type(WithPrivateAttrs)
            a3 = int
 
        types.register_type(ForcedOrder)
 
        print(ForcedOrder._wsme_attributes)
        c = gen_class()
        print(c)
        types.register_type(c)
        del c._wsme_attributes
 
        c.a2 = int
        c.a1 = int
        c.a3 = int
 
        types.register_type(c)

src/w/s/wsme-HEAD/wsme/tests/test_types.py   wsme(Download)
            afloat = float
 
        types.register_type(Flat)
 
        assert len(Flat._wsme_attributes) == 4
    def test_private_attr(self):
        class WithPrivateAttrs(object):
            _private = 12
 
        types.register_type(WithPrivateAttrs)
            a3 = int
 
        types.register_type(ForcedOrder)
 
        print(ForcedOrder._wsme_attributes)
        c = gen_class()
        print(c)
        types.register_type(c)
        del c._wsme_attributes
 
        c.a2 = int
        c.a1 = int
        c.a3 = int
 
        types.register_type(c)

src/w/s/WSME-0.6/wsme/tests/test_restxml.py   WSME(Download)
import wsme.tests.protocol
from wsme.utils import parse_isodatetime, parse_isodate, parse_isotime
from wsme.types import isarray, isdict, isusertype, register_type
 
from wsme.rest.xml import fromxml, toxml
            atext = wsme.types.text
 
        register_type(MyType)
 
        value = MyType()

src/w/s/WSME-0.6/wsme/tests/test_restjson.py   WSME(Download)
from wsme.rest.json import fromjson, tojson
from wsme.utils import parse_isodatetime, parse_isotime, parse_isodate
from wsme.types import isarray, isdict, isusertype, register_type
from wsme.rest import expose, validate
 
            astr = str
 
        register_type(MyType)
 
        v = MyType()

src/w/s/wsme-HEAD/wsme/tests/test_restxml.py   wsme(Download)
import wsme.tests.protocol
from wsme.utils import parse_isodatetime, parse_isodate, parse_isotime
from wsme.types import isarray, isdict, isusertype, register_type
 
from wsme.rest.xml import fromxml, toxml
            atext = wsme.types.text
 
        register_type(MyType)
 
        value = MyType()

src/w/s/wsme-HEAD/wsme/tests/test_restjson.py   wsme(Download)
from wsme.rest.json import fromjson, tojson
from wsme.utils import parse_isodatetime, parse_isotime, parse_isodate
from wsme.types import isarray, isdict, isusertype, register_type
from wsme.rest import expose, validate
 
            astr = str
 
        register_type(MyType)
 
        v = MyType()