Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
    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)
Ejemplo n.º 3
0
        "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
Ejemplo n.º 4
0
        "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