OpenQuizz
Une application de gestion des contenus pédagogiques
SubmoduleConfigParser Class Reference
Inheritance diagram for SubmoduleConfigParser:
Collaboration diagram for SubmoduleConfigParser:

Public Member Functions

def __init__ (self, *args, **kwargs)
 
def set_submodule (self, submodule)
 
def flush_to_index (self)
 
def write (self)
 
- Public Member Functions inherited from GitConfigParser
def __init__ (self, file_or_files=None, read_only=True, merge_includes=True, config_level=None, repo=None)
 
def __del__ (self)
 
def __enter__ (self)
 
def __exit__ (self, exception_type, exception_value, traceback)
 
def release (self)
 
def optionxform (self, optionstr)
 
def read (self)
 
def items (self, section_name)
 
def items_all (self, section_name)
 
def add_section (self, section)
 
def read_only (self)
 
def get_value (self, section, option, default=None)
 
def get_values (self, section, option, default=None)
 
def set_value (self, section, option, value)
 
def add_value (self, section, option, value)
 
def rename_section (self, section, new_name)
 
- Public Member Functions inherited from MetaParserBuilder
def __new__ (cls, name, bases, clsdict)
 

Additional Inherited Members

- Static Public Attributes inherited from GitConfigParser
 t_lock
 
 re_comment
 
 optvalueonly_source
 
 OPTVALUEONLY
 
 OPTCRE
 

Detailed Description

Catches calls to _write, and updates the .gitmodules blob in the index
with the new data, if we have written into a stream. Otherwise it will
add the local file to the index to make it correspond with the working tree.
Additionally, the cache must be cleared

Please note that no mutating method will work in bare mode

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
args,
**  kwargs 
)

Member Function Documentation

◆ flush_to_index()

def flush_to_index (   self)
Flush changes in our configuration file to the index

◆ set_submodule()

def set_submodule (   self,
  submodule 
)
Set this instance's submodule. It must be called before
the first write operation begins

◆ write()

def write (   self)
Write changes to our file, if there are changes at all

:raise IOError: if this is a read-only writer instance or if we could not obtain
    a file lock

Reimplemented from GitConfigParser.


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