Package viindex :: Module filesdb :: Class FilesDB
[show private | hide private]
[frames | no frames]

Class FilesDB


Store/load the dictionary self.files into/from a file.
Method Summary
  __init__(self, fname)
__init__([<file name,default=indexer_files.db>]
  add_newfile(self, file, attrs)
add_newfile(<file name to add>,[attrs=<attributes to add in self.files,default={}>]
  check_integrity(self)
  clean(self)
  get_fileid(self, file)
get_fileid(<file name>) get the fileid if a specific file
  get_filename(self, fileid)
get_filanem(<fileid>) get the filename of a specific fileid
  load(self)
load() load the dictionary from the file to self.files.
  save(self)
save() to save self.files in the file.

Method Details

__init__(self, fname='indexer_files.db')
(Constructor)

__init__([<file name,default=indexer_files.db>]

add_newfile(self, file, attrs={})

add_newfile(<file name to add>,[attrs=<attributes to add in self.files,default={}>]

get_fileid(self, file)

get_fileid(<file name>) get the fileid if a specific file

get_filename(self, fileid)

get_filanem(<fileid>) get the filename of a specific fileid

load(self)

load() load the dictionary from the file to self.files.

save(self)

save() to save self.files in the file.

Generated by Epydoc 1.1 on Wed Aug 27 15:42:19 2003 http://epydoc.sf.net