Did I find the right examples for you? yes no

All Samples(71)  |  Call(16)  |  Derive(39)  |  Import(16)

src/w/s/WSME-0.6/examples/demo/demo.py   WSME(Download)
"""
 
from wsme import WSRoot, expose, validate
from wsme.types import File
 
class DemoRoot(WSRoot):
    @expose(int)
    @validate(int, int)
    def multiply(self, a, b):
        return a * b

src/w/s/wsme-HEAD/examples/demo/demo.py   wsme(Download)
"""
 
from wsme import WSRoot, expose, validate
from wsme.types import File
 
class DemoRoot(WSRoot):
    @expose(int)
    @validate(int, int)
    def multiply(self, a, b):
        return a * b

src/w/s/WSME-0.6/wsmeext/cornice.py   WSME(Download)
def includeme(config):
    import pyramid.wsgi
    wsroot = wsme.WSRoot(scan_api=scan_api, webpath='/ws')
    wsroot.addprotocol('extdirect')
    config.add_renderer('wsmejson', WSMEJsonRenderer)

src/w/s/wsme-HEAD/wsmeext/cornice.py   wsme(Download)
def includeme(config):
    import pyramid.wsgi
    wsroot = wsme.WSRoot(scan_api=scan_api, webpath='/ws')
    wsroot.addprotocol('extdirect')
    config.add_renderer('wsmejson', WSMEJsonRenderer)

src/w/s/WSME-0.6/wsmeext/sphinxext.py   WSME(Download)
class SampleService(wsme.WSRoot):
    @wsme.expose(SampleType)
    @wsme.validate(SampleType, int, str)
    def change_aint(data, aint, dummy='useless'):
        """

src/w/s/wsme-HEAD/wsmeext/sphinxext.py   wsme(Download)
class SampleService(wsme.WSRoot):
    @wsme.expose(SampleType)
    @wsme.validate(SampleType, int, str)
    def change_aint(data, aint, dummy='useless'):
        """

src/w/s/WSME-0.6/wsme/tests/test_root.py   WSME(Download)
# encoding=utf8
 
import unittest
 
from wsme import WSRoot
    def test_default_transaction(self):
        import transaction
        root = WSRoot(transaction=True)
        assert root._transaction is transaction
 
                raise Exception('test')
 
        root = WSRoot()
        root.addprotocol(P())
 

src/w/s/wsme-HEAD/wsme/tests/test_root.py   wsme(Download)
# encoding=utf8
 
import unittest
 
from wsme import WSRoot
    def test_default_transaction(self):
        import transaction
        root = WSRoot(transaction=True)
        assert root._transaction is transaction
 
                raise Exception('test')
 
        root = WSRoot()
        root.addprotocol(P())
 

src/w/s/WSME-0.6/tests/test_tg15.py   WSME(Download)
import wsmeext.tg15
from wsme import WSRoot
 
from turbogears.controllers import RootController
import cherrypy
    sub = Subcontroller()
 
    ws = WSRoot(webpath='/ws')
    ws.addprotocol('soap',
        tns=test_soap.tns,

src/w/s/wsme-HEAD/tests/test_tg15.py   wsme(Download)
import wsmeext.tg15
from wsme import WSRoot
 
from turbogears.controllers import RootController
import cherrypy
    sub = Subcontroller()
 
    ws = WSRoot(webpath='/ws')
    ws.addprotocol('soap',
        tns=test_soap.tns,

  1 | 2 | 3  Next