Ejemplo n.º 1
0
 def get(self):
     active = self.get_argument("active", "system")
     system_form = config_forms.system_form()
     system_form.fill(self.settings.config.system)
     database_form = config_forms.database_form()
     database_form.fill(self.settings.config.database)
     syslog_form = config_forms.syslog_form()
     syslog_form.fill(self.settings.config.syslog)
     self.render("config.html",
                 active=active,
                 system_form=system_form,
                 database_form=database_form,
                 syslog_form=syslog_form)
Ejemplo n.º 2
0
 def get(self):
     active = self.get_argument("active", "system")
     system_form = config_forms.system_form()
     system_form.fill(self.settings.config.system)
     database_form = config_forms.database_form()
     database_form.fill(self.settings.config.database)        
     syslog_form = config_forms.syslog_form()
     syslog_form.fill(self.settings.config.syslog)
     self.render("config.html",
         active=active,
         system_form=system_form,
         database_form=database_form,
         syslog_form=syslog_form)
Ejemplo n.º 3
0
    def get(self):
        active = self.get_argument("active", "system")
        system_form = config_forms.system_form()
        system_form.fill(self.settings.config.system)
        database_form = config_forms.database_form()
        if 'DB_TYPE' in os.environ and 'DB_URL' in os.environ:
            self.settings.config['database']['dbtype'] = os.environ.get('DB_TYPE')
            self.settings.config['database']['dburl'] = os.environ.get('DB_URL')

        database_form.fill(self.settings.config.database)        
        syslog_form = config_forms.syslog_form()
        syslog_form.fill(self.settings.config.syslog)
        self.render("config.html",
            active=active,
            system_form=system_form,
            database_form=database_form,
            syslog_form=syslog_form)
Ejemplo n.º 4
0
    def get(self):
        active = self.get_argument("active", "system")
        system_form = config_forms.system_form()
        system_form.fill(self.settings.config.system)
        database_form = config_forms.database_form()
        if 'DB_TYPE' in os.environ and 'DB_URL' in os.environ:
            self.settings.config['database']['dbtype'] = os.environ.get('DB_TYPE')
            self.settings.config['database']['dburl'] = os.environ.get('DB_URL')

        database_form.fill(self.settings.config.database)        
        syslog_form = config_forms.syslog_form()
        syslog_form.fill(self.settings.config.syslog)
        self.render("config.html",
            active=active,
            system_form=system_form,
            database_form=database_form,
            syslog_form=syslog_form)