示例#1
0
 def post(self, id):
     # id = self.get_argument('id')
     cmd = self.get_argument('cmd').strip() + ' ' + self.get_argument('option').strip() \
           + ' ' + self.get_argument('file').strip()
     self.process = GeneralSubprocess(1, cmd)
     global tasks
     tasks[id] = self.process.run_process()
     self.render("start.html", id=id)
示例#2
0
 def post(self, id):
     # id = self.get_argument('id')
     cmd = self.get_argument('cmd').strip() + ' ' + self.get_argument('option').strip() \
           + ' ' + self.get_argument('file').strip()
     self.process = GeneralSubprocess(1, cmd)
     global tasks
     tasks[id] = self.process.run_process()
     self.render("start.html", id=id)
示例#3
0
class StartHandler(RequestHandler):
    def initialize(self):
        self.process = None

    @coroutine
    def post(self, id):
        # id = self.get_argument('id')
        cmd = self.get_argument('cmd').strip() + ' ' + self.get_argument('option').strip() \
              + ' ' + self.get_argument('file').strip()
        self.process = GeneralSubprocess(1, cmd)
        global tasks
        tasks[id] = self.process.run_process()
        self.render("start.html", id=id)
示例#4
0
class StartHandler(RequestHandler):
    def initialize(self):
        self.process = None

    @coroutine
    def post(self, id):
        # id = self.get_argument('id')
        cmd = self.get_argument('cmd').strip() + ' ' + self.get_argument('option').strip() \
              + ' ' + self.get_argument('file').strip()
        self.process = GeneralSubprocess(1, cmd)
        global tasks
        tasks[id] = self.process.run_process()
        self.render("start.html", id=id)