Package moul :: Package file :: Module plasmalog :: Class PlasmalogZipper
[hide private]
[frames] | no frames]

Class PlasmalogZipper



object --+
         |
        PlasmalogZipper

Zip plasma logs

Instance Methods [hide private]
  __init__(self, srcdir, destdir)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  setZip(self, boolean)
Set ZIP flag
  setRemoe(self, boolean)
Set remoe flag
  isPlasmaLogDir(self, path=None)
Check if a path is a valid plasma log directory
  zipLogDir(self)
Zip all log files
  removeLogs(self)
Removes log directories
  __len__(self)
TODO: implementation
  __iter__(self)
TODO: implementation

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Class Variables [hide private]
  _save_patterns = ['*.elf', '*.txt', '*.log', '*.zip', '*.jpg']

Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, srcdir, destdir)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

setZip(self, boolean)

 
Set ZIP flag

setRemoe(self, boolean)

 
Set remoe flag

isPlasmaLogDir(self, path=None)

 

Check if a path is a valid plasma log directory

Just checks for the plasmalog.txt file Returns either False or a time stamp

zipLogDir(self)

 

Zip all log files

This function also zips subdirectories.

removeLogs(self)

 

Removes log directories

The removeLogs function removes only files considered as safe

__len__(self)
(Length operator)

 
TODO: implementation

__iter__(self)

 
TODO: implementation

Class Variable Details [hide private]

_save_patterns

None
Value:
['*.elf', '*.txt', '*.log', '*.zip', '*.jpg']