示例#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