예제 #1
0
파일: http.py 프로젝트: KetothXupack/spyne
    def __init__(self, app, chunked=False,
                max_content_length=2 * 1024 * 1024,
                block_length=8 * 1024):
        ServerBase.__init__(self, app)

        self.chunked = chunked
        self.max_content_length = max_content_length
        self.block_length = block_length
예제 #2
0
파일: zeromq.py 프로젝트: mangroovie/spyne
    def __init__(self, app, app_url, wsdl_url=None):
        ServerBase.__init__(self, app)

        self.app_url = app_url
        self.wsdl_url = wsdl_url

        self.zmq_socket = context.socket(zmq.REP)
        self.zmq_socket.bind(app_url)
예제 #3
0
파일: zeromq.py 프로젝트: 66ru/spyne
    def __init__(self, app, app_url, wsdl_url=None):
        ServerBase.__init__(self, app)

        self.app_url = app_url
        self.wsdl_url = wsdl_url

        self.zmq_socket = context.socket(zmq.REP)
        self.zmq_socket.bind(app_url)
예제 #4
0
파일: http.py 프로젝트: fmezas/spyne
    def __init__(self, app, chunked=False,
                max_content_length=2 * 1024 * 1024,
                block_length=8 * 1024):
        ServerBase.__init__(self, app)

        self.chunked = chunked
        self.max_content_length = max_content_length
        self.block_length = block_length
예제 #5
0
    def __init__(self, db, app, consumer_id):
        ServerBase.__init__(self, app)

        self.session = sessionmaker(bind=db)()
        self.id = consumer_id

        if self.session.query(WorkerStatus).get(self.id) is None:
            self.session.add(WorkerStatus(worker_id=self.id))
            self.session.commit()
예제 #6
0
파일: http.py 프로젝트: Bluehorn/spyne
    def __init__(self, app, chunked=False,
                max_content_length=2 * 1024 * 1024,
                block_length=8 * 1024):
        ServerBase.__init__(self, app)

        self._allowed_http_verbs = app.in_protocol.allowed_http_verbs

        self.chunked = chunked
        self.max_content_length = max_content_length
        self.block_length = block_length
예제 #7
0
파일: queue.py 프로젝트: norox/spyne
    def __init__(self, db, app, consumer_id):
        ServerBase.__init__(self, app)

        self.session = sessionmaker(bind=db)()
        self.id = consumer_id

        worker_status = self.session.query(WorkerStatus).filter_by(worker_id=self.id).first()

        if worker_status is None:
            self.session.add(WorkerStatus(worker_id=self.id, task_id=0))
            self.session.commit()
예제 #8
0
    def __init__(self,
                 app,
                 chunked=False,
                 max_content_length=2 * 1024 * 1024,
                 block_length=8 * 1024):
        ServerBase.__init__(self, app)

        self._allowed_http_verbs = app.in_protocol.allowed_http_verbs

        self.chunked = chunked
        self.max_content_length = max_content_length
        self.block_length = block_length
예제 #9
0
파일: queue.py 프로젝트: 66ru/spyne
    def __init__(self, db, app, consumer_id):
        ServerBase.__init__(self, app)

        self.session = sessionmaker(bind=db)()
        self.id = consumer_id

        try:
            self.session.query(WorkerStatus) \
                          .filter_by(worker_id=self.id).one()
        except NoResultFound:
            self.session.add(WorkerStatus(worker_id=self.id, task_id=0))
            self.session.commit()
예제 #10
0
    def __init__(self, db, app, consumer_id):
        ServerBase.__init__(self, app)

        self.session = sessionmaker(bind=db)()
        self.id = consumer_id


        worker_status = self.session.query(WorkerStatus) \
                          .filter_by(worker_id=self.id).first()

        if worker_status is None:
            self.session.add(WorkerStatus(worker_id=self.id, task_id=0))
            self.session.commit()
예제 #11
0
    def __init__(self, app):
        ServerBase.__init__(self, app)

        self.service = _FunctionProxy(self, self.app)
        self.factory = Factory(self.app)
예제 #12
0
파일: null.py 프로젝트: murilowlima/spyne
    def __init__(self, app):
        ServerBase.__init__(self, app)

        self.service = _FunctionProxy(self, self.app)
        self.factory = Factory(self.app)