Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
@summary: Raised by the MarshallerFactory when an unknown Marshaller type
is requested.

src/p/y/PyRQ-0.4.1/PyRQ/Core/Marshal/MarshallerFactory.py   PyRQ(Download)
 
from PyRQ.Core.Marshal.DefaultMarshaller import DefaultMarshaller
from PyRQ.Core.Marshal.UnknownMarshallerError import UnknownMarshallerError
 
class MarshallerFactory(object):
    def get(name, **kwargs):
        if name==MarshallerFactory.DEFAULT:
            return DefaultMarshaller(name, **kwargs)
        raise UnknownMarshallerError(name)