def get_telnet_manager(): from globaldb import global_conn, global_cache from Model import Section, Status, UserInfo, UserSign, Board,\ Post, Mail, ReadMark, Permissions, Favourite, Clipboard,\ Disgest, FreqControl, Notify, Notice, Team, \ UserAuth, Deny, Admin, Query, Manager, Action, WebConfigure from perm import ArgoTeam return Manager(global_conn, global_cache, [ Section, Status, UserInfo, UserSign, Board, Post, Mail, ReadMark, Permissions, Favourite, Clipboard, Disgest, FreqControl, Notify, Notice, Team, ArgoTeam, UserAuth, Deny, Admin, Query, Action, WebConfigure, ], MODULE_NAME)
favourite = Favourite() clipboard = Clipboard() loads = [section,online,userinfo,auth,board,post,readmark,mail,usersign, favourite,clipboard] use = { "section":section, "online":online, "userinfo":userinfo, "auth":auth, "board":board, "post":post, "action":action, "readmark":readmark, "perm":perm, "usersign":usersign, "favourite":favourite, "mail":mail, "clipboard":clipboard, } @classmethod def load(cls): for model in cls.loads : model.bind(db = cls.db, ch = cls.ch) CF.load() manager = Manager() Manager.configure(CF)
"auth":auth, "board":board, "post":post, "action":action, "readmark":readmark, "perm":perm, "usersign":usersign, "favourite":favourite, "mail":mail, "clipboard":clipboard, "disgest":disgest, "freq":freq, "userperm":userperm, "team":team, "admin":admin, "query":query, "deny":deny, "notify":notify, "notice":notice, } @classmethod def load(cls): for model in cls.loads : model.bind(db = cls.db, ch = cls.ch) CF.load() manager = Manager() Manager.configure(CF) manager.telnet = {} # cache use for telnet
"board": board, "post": post, "action": action, "readmark": readmark, "perm": perm, "usersign": usersign, "favourite": favourite, "mail": mail, "clipboard": clipboard, "disgest": disgest, "freq": freq, "userperm": userperm, "team": team, "admin": admin, "query": query, "deny": deny, "notify": notify, "notice": notice, } @classmethod def load(cls): for model in cls.loads: model.bind(db=cls.db, ch=cls.ch) CF.load() manager = Manager() Manager.configure(CF) manager.telnet = {} # cache use for telnet