# Path: payway/qiwi/soap/server.py
# def run_qiwi_soap_server():
#     tornado.options.parse_command_line()
#     tornado.options.parse_config_file(QIWI_SOAP_SERVER_CONF)
# 
#     service = [('UpdateBillService', UpdateBillSoapHandler)]
#     app = webservices.WebService(service)
#     app.listen(QIWI_SOAP_SERVER_PORT)
#     logging.info("Starting torando web server on port {0}".format(QIWI_SOAP_SERVER_PORT))
#     tornado.ioloop.IOLoop.instance().start()


from django.core.management.base import NoArgsCommand
from payway.qiwi.soap.server import run_qiwi_soap_server
# -*- coding: UTF-8 -*-


__author__ = 'Razzhivin Alexander'
__email__ = 'admin@httpbots.com'


class Command(NoArgsCommand):

    def handle_noargs(self, **options):

# Path: payway/qiwi/soap/server.py
# def run_qiwi_soap_server():
#     tornado.options.parse_command_line()
#     tornado.options.parse_config_file(QIWI_SOAP_SERVER_CONF)
# 
#     service = [('UpdateBillService', UpdateBillSoapHandler)]
#     app = webservices.WebService(service)
#     app.listen(QIWI_SOAP_SERVER_PORT)
#     logging.info("Starting torando web server on port {0}".format(QIWI_SOAP_SERVER_PORT))
#     tornado.ioloop.IOLoop.instance().start()


# Path: payway/qiwi/management/commands/run_qiwi_soap_server.py
from django.core.management.base import NoArgsCommand
from payway.qiwi.soap.server import run_qiwi_soap_server

# -*- coding: UTF-8 -*-


__author__ = 'Razzhivin Alexander'
__email__ = 'admin@httpbots.com'


class Command(NoArgsCommand):

    def handle_noargs(self, **options):

        run_qiwi_soap_server()