Did I find the right examples for you? yes no

All Samples(24)  |  Call(18)  |  Derive(0)  |  Import(6)

src/s/o/Soapbox-0.3.7/soapbox/py2xsd.py   Soapbox(Download)
 
from . import xsd, xsdspec
from .utils import uncapitalize
 
try:
    base_class = _type.__class__.__bases__[0]
    if base_class == xsd.SimpleType or _type.__class__  in ALL_TYPES:
        return 'xsd:' + uncapitalize(_type.__class__.__name__)
    else:
        return 'sns:' + uncapitalize(_type.__class__.__name__)
    xsd_ct = xsdspec.XSDComplexType()
    if named:
        xsd_ct.name = uncapitalize(complexType.__name__)
 
    for attribute in complexType._meta.attributes:
def xsd_simpleType(st):
    '''
    '''
    xsd_simpleType = xsdspec.SimpleType()
    xsd_simpleType.name = uncapitalize(st.__name__)

src/s/o/Soapbox-HEAD/soapbox/py2xsd.py   Soapbox(Download)
 
from . import xsd, xsdspec
from .utils import uncapitalize
 
try:
    base_class = _type.__class__.__bases__[0]
    if base_class == xsd.SimpleType or _type.__class__  in ALL_TYPES:
        return 'xsd:' + uncapitalize(_type.__class__.__name__)
    else:
        return 'sns:' + uncapitalize(_type.__class__.__name__)
    xsd_ct = xsdspec.XSDComplexType()
    if named:
        xsd_ct.name = uncapitalize(complexType.__name__)
 
    for attribute in complexType._meta.attributes:
def xsd_simpleType(st):
    '''
    '''
    xsd_simpleType = xsdspec.SimpleType()
    xsd_simpleType.name = uncapitalize(st.__name__)

src/s/o/Soapbox-0.3.7/soapbox/soap.py   Soapbox(Download)
 
from . import settings, soap11, soap12
from .utils import uncapitalize
 
try:
            tagname = method.input
        else:
            tagname = uncapitalize(parameter.__class__.__name__)
        parameter.xml(tagname,
                      schema=self.SERVICE.schema,
            return_object = method.function(request, input_object)
            try:
                tagname = uncapitalize(return_object.__class__.__name__)
                return_object.xml(tagname, namespace=service.schema.targetNamespace,
                                  elementFormDefault=service.schema.elementFormDefault,
                tagname = method.output
            else:
                tagname = uncapitalize(return_object.__class__.__name__)
            return tagname, return_object
        raise ValueError('Method not found!')

src/s/o/Soapbox-HEAD/soapbox/soap.py   Soapbox(Download)
 
from . import settings, soap11, soap12
from .utils import uncapitalize
 
try:
            tagname = method.input
        else:
            tagname = uncapitalize(parameter.__class__.__name__)
        parameter.xml(tagname,
                      schema=self.SERVICE.schema,
            return_object = method.function(request, input_object)
            try:
                tagname = uncapitalize(return_object.__class__.__name__)
                return_object.xml(tagname, namespace=service.schema.targetNamespace,
                                  elementFormDefault=service.schema.elementFormDefault,
                tagname = method.output
            else:
                tagname = uncapitalize(return_object.__class__.__name__)
            return tagname, return_object
        raise ValueError('Method not found!')

src/s/o/Soapbox-0.3.7/soapbox/py2wsdl.py   Soapbox(Download)
from .py2xsd import generate_xsdspec
from .soap import SOAP_HTTP_Transport
from .utils import uncapitalize
from .wsdl import get_wsdl_classes
 
            inputMessage.part.element = 'sns:' + method.input
        else:
            inputMessage.part.type = 'sns:' + uncapitalize(method.input.__name__)
        definitions.messages.append(inputMessage)
 
            outputMessage.part.element = 'sns:' + method.output
        else:
            outputMessage.part.type = 'sns:' + uncapitalize(method.output.__name__)
        definitions.messages.append(outputMessage)
 

src/s/o/Soapbox-HEAD/soapbox/py2wsdl.py   Soapbox(Download)
from .py2xsd import generate_xsdspec
from .soap import SOAP_HTTP_Transport
from .utils import uncapitalize
from .wsdl import get_wsdl_classes
 
            inputMessage.part.element = 'sns:' + method.input
        else:
            inputMessage.part.type = 'sns:' + uncapitalize(method.input.__name__)
        definitions.messages.append(inputMessage)
 
            outputMessage.part.element = 'sns:' + method.output
        else:
            outputMessage.part.type = 'sns:' + uncapitalize(method.output.__name__)
        definitions.messages.append(outputMessage)