Exemple #1
0
            'handlers': ['console', 'kermit_log_file'],
            'level': CONF.get('webui_logs', 'main.level'),
        },
        'webui.restserver.communication': {
            'handlers': ['kermit_mcol_log'],
            'level': CONF.get('webui_logs', 'calls.level'),
        }
    }
}

BASE_URL = CONF.get('webui', 'base_url')
#LOGIN_URL=BASE_URL + "/accounts/login/"
#LOGIN_REDIRECT_URL = '/'
#LOGOUT_LINK = ""

SHOW_STATUS_BAR = CONF.getboolean('webui', 'show_status_bar')
auth_method = CONF.get('webui', 'authentication')

if auth_method:
    platform_name = 'webui.authentication.' + auth_method + ".settings"
    try:
        conf_module = __import__(platform_name, globals(), locals(),
                                 "settings")
        # Load the config settings properties into the local scope.
        for setting in dir(conf_module):
            if setting == setting.upper():
                locals()[setting] = getattr(conf_module, setting)
    except:
        conf_module = None

else:
Exemple #2
0
            'handlers': ['console', 'kermit_log_file'],
            'level': CONF.get('webui_logs', 'main.level'),
        },
        'webui.restserver.communication': {
            'handlers': ['kermit_mcol_log'],
            'level': CONF.get('webui_logs', 'calls.level'),
        }
    }
}

BASE_URL=CONF.get('webui', 'base_url')
#LOGIN_URL=BASE_URL + "/accounts/login/"
#LOGIN_REDIRECT_URL = '/'
#LOGOUT_LINK = ""

SHOW_STATUS_BAR=CONF.getboolean('webui', 'show_status_bar')
auth_method=CONF.get('webui', 'authentication')

if auth_method:
    platform_name = 'webui.authentication.' + auth_method + ".settings"
    try :
        conf_module = __import__(platform_name, globals(), locals(), "settings")
        # Load the config settings properties into the local scope.
        for setting in dir(conf_module):
            if setting == setting.upper():
                locals()[setting] = getattr(conf_module, setting)
    except:
        print "DEBUG: No auth module found. Initializing DB?"    
            
else:
    from webui.authentication.default.settings import *
Exemple #3
0
        print "DEBUG: No auth module found. Initializing DB?"

else:
    from webui.authentication.default.settings import *


RUBY_REST_BASE_URL = CONF.get("webui", "rest_server_url")

RUBY_REST_PING_URL = CONF.get("webui", "rest_server_ping_url")

CRON_POLLING_FREQUENCY = 60

AMQP_RECEIVER_INVENTORY_FOLDER = CONF.get("webui", "amqp_receive_inventory_folder")
AMQP_RECEIVER_LOG_FOLDER = CONF.get("webui", "amqp_receive_log_folder")

FILTERS_SERVER = CONF.getboolean("webui", "filters.server")
FILTERS_CLASS = CONF.getboolean("webui", "filters.class")

EMAIL_HOST = CONF.get("webui", "email.host")
EMAIL_PORT = CONF.get("webui", "email.port")
EMAIL_HOST_USER = CONF.get("webui", "email.username")
EMAIL_HOST_PASSWORD = CONF.get("webui", "email.password")
EMAIL_USE_TLS = CONF.getboolean("webui", "email.usetls")


import djcelery

djcelery.setup_loader()

BROKER_TRANSPORT = "django"
CELERY_IMPORTS = ("webui",)