@@ -0,0 +1,1508 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A%0A%0A'''BaseHandler%0A'''%0A%0Aimport logging%0Aimport time%0A%0Afrom twork.errors import (ArgumentNotFoundError,%0A                          ArgumentTypeError,%0A                          ArgumentEmptyError,%0A                          )%0A%0Afrom twork.utils.common import parse_web_input%0A%0Afrom twork.web.action.base import BaseHandler as TBaseHandler%0A%0Afrom twork_app.domain.web.action.base import BaseAction%0A%0A%0Agen_logger = logging.getLogger('twork.general')%0A%0A%0Aclass BaseHandler(TBaseHandler):%0A    '''BaseHandler, RESTFUL SUPPORTED.%0A    '''%0A%0A    ST_ITEM = 'TWORKAPP_BASE'%0A%0A    def get(self, *args, **kwargs):%0A        %22%22%22Process GET Method%0A        %22%22%22%0A        input = self._init_input()%0A%0A        action = BaseAction(input, rsp_json=self.rsp_json)%0A        action.execute()%0A%0A    def post(self, *args, **kwargs):%0A        %22%22%22Process POST Method%0A        %22%22%22%0A        self._init_input()%0A%0A    def put(self, *args, **kwargs):%0A        %22%22%22Process PUT Method%0A        %22%22%22%0A        self._init_input()%0A%0A    def delete(self, *args, **kwargs):%0A        %22%22%22Process DELETE Method%0A        %22%22%22%0A        self._init_input()%0A%0A    def _init_input(self):%0A        %22%22%22Initialize And Convert WebInput Argument To Inner Argument%0A        %22%22%22%0A        input = parse_web_input(BaseAction.INNER_ARGUMENTS,%0A                                BaseAction.INPUT_ARGUMENTS,%0A                                self.get_argument)%0A        if input.query_id is None:%0A            input.query_id = '%25.6f' %25 time.time()%0A%0A        return input%0A

Add base handler for twork app