예제 #1
0
def stage():
    handle = db_handle('sneakypassword')
    conn = handle.connect()
    handle.get_tables(conn)
    if not 'user_maps' in handle.tablenames and not 'groups_maps' in handle.tablenames:
        handle.build_db()
    return conn, handle
예제 #2
0
    def __init__(self):
        Application.__init__(self)
        # Parse self.options
        self.parseOptions()
        # Setup output (log)
        self.setupLog()
        self.blacklist = [ "setpgid",'rt_sigreturn']

        self.handle = db_handle('sneakypassword', blacklist=self.blacklist)
        conn = self.handle.connect()
        self.handle.get_tables(conn)
        conn.close()