예제 #1
0
파일: moodle_log.py 프로젝트: dleony/PLA
def initialize(module_name):
    """
    Initialization function. Must be here always.
    """

    global filter_function
    global debug

    # Get the level of debug
    debug = int(rule_manager.get_property(None, module_name, 'debug'))

    filter_function = process_filters.initialize_filter(module_name)

    return
예제 #2
0
파일: svn_log.py 프로젝트: dleony/PLA
def initialize(module_name):
    """
    Initialization function. Must be here always.

    """

    global svn_client
    global filter_function
    global debug
    
    # Get the level of debug
    debug = int(rule_manager.get_property(None, module_name, 'debug'))

    filter_function = process_filters.initialize_filter(module_name)

    svn_client = pysvn.Client()
    svn_client.exception_style = 1

    return