Package archive :: Module mappers :: Class PolicyMapper
[hide private]
[frames] | no frames]

Class PolicyMapper

source code

object --+    
         |    
    Mapper --+
             |
            PolicyMapper

Implements a policy content mapper.

It transforms a list of files into a list of commands with their inputs. All files with policy 0 will be under the main archive. All other files will get backed up by policy and then store into an second archive.



Instance Methods [hide private]
 
__init__(self, config, archiver)
Initialization.
source code
 
load_policy_binary(self, csvfile, column=1)
Loads the binary IDs from the CSV file.
source code
 
zip2zip(self)
Should the non public zip be zipped up under a specific zip.
source code
 
create_commands(self, manifest)
Generates a list of build commands.
source code
 
get_dir_policy(self, dirname)
Get policy value for a specific directory.
source code
 
get_policy_filenames(self)
Returns the list of potential policy filenames.
source code
 
_sort_by_policy(self, filename)
Store the input file sorted by its policy number.
source code

Inherited from Mapper: declare_package

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, config, archiver)
(Constructor)

source code 
Initialization.
Overrides: Mapper.__init__

create_commands(self, manifest)

source code 
Generates a list of build commands.
Overrides: Mapper.create_commands