(self,opts)
return
Read a file to the in-memory database
Read a file to the in-memory database
Read a file to the in - memory database
def _open(self,opts):
        'Read a file to the in-memory database'
        opts,files = self.ops['open'].parse_args(opts)
        import kpdb
        # fixme - add support for opening/merging multiple DBs!
        try:
            dbfile = files[0]
        except IndexError:
            print "No database file specified"
            sys.exit(1)
        self.db = kpdb.Database(files[0],opts.masterkey)
        self.hier = self.db.hierarchy()
        return
def _open ( self , opts ) : opts , files = self . ops [ 'open' ] . parse_args ( opts ) import kpdb # fixme - add support for opening/merging multiple DBs! try : dbfile = files [ 0 ] except IndexError : print "No database file specified" sys . exit ( 1 ) self . db = kpdb . Database ( files [ 0 ] , opts . masterkey ) self . hier = self . db . hierarchy ( ) return