Example #1
0
 def __init__(self, conds, admin_obj):
     SearchHelper.__init__(
         self,
         conds,
         admin_obj,
         {"credit_change": CreditChangeSearchTable(), "credit_change_userid": CreditChangeUserIDSearchTable()},
     )
Example #2
0
 def __init__(self, conds, requester_obj, requester_role):
     SearchHelper.__init__(
         self, conds, requester_obj, requester_role, {
             "users": SearchUsersTable(),
             "user_attrs": SearchUserAttrsTable(),
             "normal_users": SearchNormalUsersTable(),
             "persistent_lan_users": SearchPLanUsersTable(),
             "voip_users": SearchVoIPUsersTable(),
             "caller_id_users": SearchCallerIDUsersTable(),
             "group_attrs": SearchGroupAttrsTable(),
         })
Example #3
0
 def __init__(self, conds, admin_obj):
     SearchHelper.__init__(
         self,
         conds,
         admin_obj,
         {
             "users": SearchUsersTable(),
             "user_attrs": SearchUserAttrsTable(),
             "normal_users": SearchNormalUsersTable(),
             "persistent_lan_users": SearchPLanUsersTable(),
             "voip_users": SearchVoIPUsersTable(),
             "group_attrs": SearchGroupAttrsTable(),
         },
     )
Example #4
0
    def __init__(self, conds, requester_obj, requester_role, _type):
        """
            _type(str) can be one of "internet" or "voip"
        """
        if _type == "internet":
            table = InternetSnapShotSearchTable()
        elif _type == "voip":
            table = VoIPSnapShotSearchTable()
        else:
            table = BWSnapShotSearchTable()

        self._type = _type

        SearchHelper.__init__(self, conds, requester_obj, requester_role,
                              {"snapshot": table})
Example #5
0
 def __init__(self, conds, requester_obj, requester_role):
     SearchHelper.__init__(
         self, conds, requester_obj, requester_role, {
             "connection_log": ConnectionLogSearchTable(),
             "connection_log_details": ConnectionLogDetailsSearchTable()
         })
Example #6
0
 def __init__(self, conds, requester_obj, requester_role):
     SearchHelper.__init__(self, conds, requester_obj, requester_role,
                           {"web_analyzer_log": WebAnalyzerSearchTable()})
Example #7
0
 def __init__(self, conds, requester_obj, requester_role):
     SearchHelper.__init__(
         self, conds, requester_obj, requester_role, {
             "credit_change": CreditChangeSearchTable(),
             "credit_change_userid": CreditChangeUserIDSearchTable()
         })
Example #8
0
 def __init__(self, conds, admin_obj):
     SearchHelper.__init__(
         self, conds, admin_obj, "admin", {
             "add_user_saves": AddUserSaveSearchTable(),
             "add_user_save_details": AddUserSaveDetailsSearchTable()
         })
Example #9
0
 def __init__(self, conds, requester_obj, requester_role):
     SearchHelper.__init__(self, conds, requester_obj, requester_role,
                           {"user_audit_log": UserAuditSearchTable()})
Example #10
0
 def __init__(self, conds, requester_obj, requester_role):
     SearchHelper.__init__(
         self, conds, requester_obj, requester_role,
         {"admin_deposit_change": AdminDepositChangeLogsSearchTable()})
Example #11
0
    def __init__(self,conds,admin_obj):
	SearchHelper.__init__(self,conds,admin_obj,{"connection_log":ConnectionLogSearchTable(),
						    "connection_log_details":ConnectionLogDetailsSearchTable()})
Example #12
0
    def __init__(self,conds,admin_obj):
	SearchHelper.__init__(self,conds,admin_obj,{"add_user_saves":AddUserSaveSearchTable(),
						    "add_user_save_details":AddUserSaveDetailsSearchTable()})
Example #13
0
 def __init__(self, conds, requester_obj, requester_role, table_name,
              table_obj):
     SearchHelper.__init__(self, conds, requester_obj, requester_role,
                           {table_name: table_obj})
     self.table_name = table_name