Back to index

obnam  1.1
Public Member Functions
obnamlib.plugins.compression_plugin.CompressionPlugin Class Reference
Inheritance diagram for obnamlib.plugins.compression_plugin.CompressionPlugin:
Inheritance graph
[legend]
Collaboration diagram for obnamlib.plugins.compression_plugin.CompressionPlugin:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def enable

Detailed Description

Definition at line 47 of file compression_plugin.py.


Member Function Documentation

Definition at line 49 of file compression_plugin.py.

00049 
00050     def enable(self):
00051         self.app.settings.choice(['compress-with'],
00052                                  ['none', 'deflate', 'gzip'],
00053                                  'use PROGRAM to compress repository with '
00054                                     '(one of none, deflate)',
00055                                  metavar='PROGRAM')
00056         
00057         hooks = [
00058             ('repository-data', DeflateCompressionFilter(self.app),
00059              obnamlib.Hook.EARLY_PRIORITY),
00060         ]
00061         for name, callback, prio in hooks:
00062             self.app.hooks.add_callback(name, callback, prio)

The documentation for this class was generated from the following file: