Logo Search packages:      
Sourcecode: sabayon version File versions  Download package

lib::storage::ProfileStorage Class Reference

List of all members.


Detailed Description

An encapsulation of all the files which make up the
contents of a profile.

The files are stored in a ZIP file with metadata. In
order to add/extract files to the profile, they are first
copied to/from a temporary directory which is then zipped.
Note, though, that the fact that its a ZIP file and the
fact that there is a temporary directory are both
implementation details and not exposed in the API.

Profile files are stored in /etc/desktop-profiles.

Each file or directory in the profile has metadata
associated with it - the "source" of the file/directory
and a set of arbitrary key value pairs which that source
may interpret.

Definition at line 85 of file storage.py.


Public Member Functions

def __del__
def __init__
def add
def copy
def extract
def foreach
def get_attributes
def get_extract_src_path
def get_source
def list
def remove
def save

Public Attributes

 metadata
 name
 needs_saving
 path
 readonly
 temp_path
 zip

Private Member Functions

def __create_empty_metadata_doc
def __foreach_all
def __foreach_node
def __get_dir_node
def __get_file_node
def __get_item_type
def __get_node
def __get_node_attributes
def __get_node_source
def __read_metadata
def __unpack
def __update_directory_node
def __update_file_node
def __update_file_or_dir_node

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

Generated by  Doxygen 1.6.0   Back to index