Пример #1
0
    def __init__(self):
        """
        app setup
        """
        # setup the parent class
        base_dir = os.path.dirname(os.path.abspath(__file__))
        base_app.__init__(self, base_dir)

        # select the base_app steps to expose
        # index() and input_xxx() are generic
        base_app.index.im_func.exposed = True
        base_app.input_select.im_func.exposed = True
        base_app.input_upload.im_func.exposed = True

        # params() is modified from the template
        base_app.params.im_func.exposed = True

        # result() is modified from the template
        base_app.result.im_func.exposed = True

        # Generate a new timestamp
        self.timestamp = int(100 * time.time())

        # run() is defined in local.py
        from local import run_algo as local_run
        # redefine app.run()
        app.run_algo = local_run
Пример #2
0
 def __init__(self):
     """
     app setup
     """
     # setup the parent class
     base_dir = os.path.dirname(os.path.abspath(__file__))
     base_app.__init__(self, base_dir)
Пример #3
0
 def __init__(self):
     """
     app setup
     """
     # setup the parent class
     base_dir = os.path.dirname(os.path.abspath(__file__))
     base_app.__init__(self, base_dir)
Пример #4
0
    def __init__(self):
        """
        app setup
        """
        # setup the parent class
        base_dir = os.path.dirname(os.path.abspath(__file__))
        base_app.__init__(self, base_dir)

        # select the base_app steps to expose
        # index() and input_xxx() are generic
        base_app.index.im_func.exposed = True
        base_app.input_select.im_func.exposed = True
        base_app.input_upload.im_func.exposed = True
        
        # params() is modified from the template
        base_app.params.im_func.exposed = True
        
        # result() is modified from the template
        base_app.result.im_func.exposed = True

        # Generate a new timestamp
        self.timestamp = int(100*time.time())

        # run() is defined in local.py
        from local import run_algo as local_run
        # redefine app.run()
        app.run_algo = local_run
Пример #5
0
    def __init__(self):
        """
        app setup
        """
        # setup the parent class
        base_dir = os.path.dirname(os.path.abspath(__file__))
        base_app.__init__(self, base_dir)

        # select the base_app steps to expose
        app_expose(base_app.index)
Пример #6
0
    def __init__(self):
        """
        app setup
        """
        # setup the parent class
        base_dir = os.path.dirname(os.path.abspath(__file__))
        base_app.__init__(self, base_dir)

        # select the base_app steps to expose
        app_expose(base_app.index)
Пример #7
0
    def __init__(self):
        """Set up application."""

        # setup the parent class
        base_dir = os.path.dirname(os.path.abspath(__file__))
        base_app.__init__(self, base_dir)

        # select the base_app steps to expose
        # index() is generic
        app_expose(base_app.index)
        app_expose(base_app.input_select)
        app_expose(base_app.input_upload)
        # params() is modified from the template
        app_expose(base_app.params)
Пример #8
0
    def __init__(self):
        """Set up application."""

        # setup the parent class
        base_dir = os.path.dirname(os.path.abspath(__file__))
        base_app.__init__(self, base_dir)

        # select the base_app steps to expose
        # index() is generic
        app_expose(base_app.index)
        app_expose(base_app.input_select)
        app_expose(base_app.input_upload)
        # params() is modified from the template
        app_expose(base_app.params)
Пример #9
0
    def __init__(self):
        """
        app setup
        """
        # setup the parent class
        base_dir = os.path.dirname(os.path.abspath(__file__))
        base_app.__init__(self, base_dir)

        # select the base_app steps to expose
        # index() and input_xxx() are generic
        base_app.index.im_func.exposed = True
        base_app.input_select.im_func.exposed = True
        base_app.input_upload.im_func.exposed = True
        # params() is modified from the template
        base_app.params.im_func.exposed = True
        # result() is modified from the template
        base_app.result.im_func.exposed = True
Пример #10
0
    def __init__(self):
        """
        app setup
        """
        # setup the parent class
        base_dir = os.path.dirname(os.path.abspath(__file__))
        base_app.__init__(self, base_dir)

        # select the base_app steps to expose
        # index() and input_xxx() are generic
        base_app.index.im_func.exposed = True
        base_app.input_select.im_func.exposed = True
        base_app.input_upload.im_func.exposed = True
        # params() is modified from the template
        base_app.params.im_func.exposed = True
        # result() is modified from the template
        base_app.result.im_func.exposed = True
Пример #11
0
    def __init__(self):
        """
        app setup
        """
        # setup the parent class
        base_dir = os.path.dirname(os.path.abspath(__file__))
        base_app.__init__(self, base_dir)

        # select the base_app steps to expose
        # index() is generic
        app_expose(base_app.index)
        app_expose(base_app.input_select)
        app_expose(base_app.input_upload)
        # params() is modified from the template
        app_expose(base_app.params)
        # run() and result() must be defined here

        self.Kmax = 250
        self.Lmax = 50
        self.autoK = True
        self.autoL = True
Пример #12
0
 def __init__(self):
     base_dir = os.path.dirname(os.path.abspath(__file__))
     base_app.__init__(self, base_dir)
Пример #13
0
    def __init__(self):
        base_dir = os.path.dirname(os.path.abspath(__file__))
        base_app.__init__(self, base_dir)

        # select the base_app steps to expose
        app_expose(base_app.index)