コード例 #1
0
def iniat():
    from core.ras.ras_factory import RasFactory
    global ras_factory
    ras_factory = RasFactory()

    loadPlugins(RAS_IMPLEMENTIONS)
    ghkghdfkjdghfdfddjd
    lokkup the task and alreay in use and configure the amir hossein 
    from core.ras.user_msg_dispatcher import UserMsgDispatcher
    global user_msg_dispatcher
    user_msg_dispatcher = UserMsgDispatcher()
コード例 #2
0
ファイル: user_main.py プロジェクト: moxwose/freeIBS
def init():
    from core.user import user_actions,user_plugin,attribute_manager

    global attr_manager
    attr_manager=attribute_manager.AttributeManager()
    
    global user_loader
    from core.user.user_loader import UserLoader
    user_loader=UserLoader()

    global user_pool
    from core.user.user_pool import UserPool
    user_pool=UserPool()
    
    global user_action_manager
    user_action_manager=user_actions.UserActions()

    global user_plugin_manager
    user_plugin_manager=user_plugin.UserPluginManager()

    global credit_change_log_actions
    from core.user.credit_change_log import CreditChangeLogActions
    credit_change_log_actions=CreditChangeLogActions()

    global connection_log_manager
    from core.user.connection_log import ConnectionLogActions
    connection_log_manager=ConnectionLogActions()

    global add_user_save_actions
    from core.user.add_user_save import AddUserSaveActions,AddUserSaveHandler
    add_user_save_actions=AddUserSaveActions()
    handlers_manager.getManager().registerHandler(AddUserSaveHandler())

    global ras_msg_dispatcher
    from core.user.ras_msg_dispatcher import RasMsgDispatcher
    ras_msg_dispatcher=RasMsgDispatcher()
    
    global online
    from core.user.online import OnlineUsers,OnlineCheckPeriodicEvent
    online=OnlineUsers()
    periodic_events.getManager().register(OnlineCheckPeriodicEvent())
    
    
    plugin_loader.loadPlugins(defs.IBS_CORE+"/user/plugins")

    from core.user.user_handler import UserHandler
    handlers_manager.getManager().registerHandler(UserHandler())
コード例 #3
0
ファイル: onlines_filter.py プロジェクト: sankopay/IBSng
def initFilters():
    global filters
    
    filters = []
    for module_obj in loadPlugins(ONLINES_FILTER_PATH).itervalues():
        for obj_name in dir(module_obj):
            try:
                obj = getattr(module_obj, obj_name)
                if issubclass(obj, OnlinesFilter) and obj != OnlinesFilter:
                    filters.append(obj())
            except TypeError:
                pass
コード例 #4
0
def init():
    from core.ras.ras_factory import RasFactory
    global ras_factory
    ras_factory = RasFactory()

    loadPlugins(RAS_IMPLEMENTIONS)

    from core.ras.ras_actions import RasActions
    global ras_actions
    ras_actions = RasActions()

    from core.ras.user_msg_dispatcher import UserMsgDispatcher
    global user_msg_dispatcher
    user_msg_dispatcher = UserMsgDispatcher()

    from core.ras.ras_loader import RasLoader
    global ras_loader
    ras_loader = RasLoader()
    ras_loader.loadAllRases()

    from core.ras.ras_handler import RasHandler
    handlers_manager.getManager().registerHandler(RasHandler())
コード例 #5
0
ファイル: ras_main.py プロジェクト: moxwose/freeIBS
def init():
    from core.ras.ras_factory import RasFactory
    global ras_factory
    ras_factory=RasFactory()

    loadPlugins(RAS_IMPLEMENTIONS)
    
    from core.ras.ras_actions import RasActions
    global ras_actions
    ras_actions=RasActions()

    from core.ras.user_msg_dispatcher import UserMsgDispatcher
    global user_msg_dispatcher
    user_msg_dispatcher=UserMsgDispatcher()

    from core.ras.ras_loader import RasLoader
    global ras_loader
    ras_loader=RasLoader()
    ras_loader.loadAllRases()

    from core.ras.ras_handler import RasHandler
    handlers_manager.getManager().registerHandler(RasHandler())
コード例 #6
0
def init():
    global onlines_loop
    from core.snapshot.onlines_loop import OnlinesLoop
    onlines_loop = OnlinesLoop()

    global realtime_manager
    from core.snapshot.realtime_manager import RealTimeManager
    realtime_manager = RealTimeManager()

    from core.snapshot.realtime_manager import RealTimePeriodicEvent
    periodic_events.getManager().register(RealTimePeriodicEvent())

    plugin_loader.loadPlugins(defs.IBS_CORE + "/snapshot/plugins")

    from core.snapshot.snapshot_handler import SnapShotHandler
    handlers_manager.getManager().registerHandler(SnapShotHandler())

    from core.snapshot.bw_snapshot import BWSnapShotOnlinesLoopClient
    getOnlinesLoop().registerClient(BWSnapShotOnlinesLoopClient())

    from core.snapshot.onlines_snapshot import OnlinesSnapShotOnlinesLoopClient
    getOnlinesLoop().registerClient(OnlinesSnapShotOnlinesLoopClient())

    getOnlinesLoop().doLoop()  #do loop for first time
コード例 #7
0
ファイル: user_main.py プロジェクト: sankopay/IBSng
def init():
    global user_audit_log_manager
    from core.user.user_audit_log import UserAuditLog
    user_audit_log_manager = UserAuditLog()

    from core.user import user_actions, user_plugin, attribute_manager
    global attr_manager
    attr_manager = attribute_manager.AttributeManager()

    global user_loader
    from core.user.user_loader import UserLoader
    user_loader = UserLoader()

    global user_pool
    from core.user.user_pool import UserPool
    user_pool = UserPool()

    global mail_actions
    from core.user.mail_actions import MailActions
    mail_actions = MailActions()

    global user_action_manager
    user_action_manager = user_actions.UserActions()

    global user_plugin_manager
    user_plugin_manager = user_plugin.UserPluginManager()

    global credit_change_log_actions
    from core.user.credit_change_log import CreditChangeLogActions
    credit_change_log_actions = CreditChangeLogActions()

    global connection_log_manager
    from core.user.connection_log import ConnectionLogActions
    connection_log_manager = ConnectionLogActions()

    global add_user_save_actions
    from core.user.add_user_save import AddUserSaveActions, AddUserSaveHandler
    add_user_save_actions = AddUserSaveActions()
    handlers_manager.getManager().registerHandler(AddUserSaveHandler())

    global ras_msg_dispatcher
    from core.user.ras_msg_dispatcher import RasMsgDispatcher
    ras_msg_dispatcher = RasMsgDispatcher()

    global online
    from core.user.online import OnlineUsers, OnlineCheckPeriodicEvent
    online = OnlineUsers()
    periodic_events.getManager().register(OnlineCheckPeriodicEvent())

    global user_server_auth
    from core.user.server_auth import UserServerAuth
    user_server_auth = UserServerAuth()

    global dialer_errors
    from core.user.dialer_errors import DialerErrors
    dialer_errors = DialerErrors()

    global voip_errors
    from core.user.voip_errors import VoIPErrors
    voip_errors = VoIPErrors()

    global ip_map
    from core.user.ip_map import IPMap
    ip_map = IPMap()

    global user_plugin_modules
    user_plugin_modules = plugin_loader.loadPlugins(defs.IBS_CORE +
                                                    "/user/plugins")

    from core.user.user_handler import UserHandler
    handlers_manager.getManager().registerHandler(UserHandler())
コード例 #8
0
def init():
    global perm_loader
    perm_loader=PermLoader()
    plugin_loader.loadPlugins(PERMS_DIRECTORY)
コード例 #9
0
ファイル: perm_loader.py プロジェクト: moxwose/freeIBS
def init():
    global perm_loader
    perm_loader=PermLoader()
    plugin_loader.loadPlugins(PERMS_DIRECTORY)