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

def vcpx::repository::Repository::_load (   self,
  project 
) [private]

Load the configuration for this repository.

The two main and mandatory attributes, ``repository`` and ``module``
can be specified either on the specific slot in the config file, or
as ``source-repository`` (or ``target-repository``) in its [DEFAULT]
section.

If the configuration does not specify a specific ``root-directory``
take the one from the project.

Definition at line 67 of file repository.py.

00067                             :
        """
        Load the configuration for this repository.

        The two main and mandatory attributes, ``repository`` and ``module``
        can be specified either on the specific slot in the config file, or
        as ``source-repository`` (or ``target-repository``) in its [DEFAULT]
        section.

        If the configuration does not specify a specific ``root-directory``
        take the one from the project.
        """

        from os.path import split, expanduser
        from locale import getpreferredencoding

        cget = project.config.get
        self.repository = cget(self.name, 'repository') or \
                          cget(self.name, '%s-repository' % self.which)
        if self.repository:
            self.repository = expanduser(self.repository)
        self.module = cget(self.name, 'module') or \
                      cget(self.name, '%s-module' % self.which)
        self.rootdir = cget(self.name, 'root-directory',
                            vars={'root-directory': project.rootdir})
        self.subdir = cget(self.name, 'subdir',
                           vars={'subdir': project.subdir})
        self.delay_before_apply = cget(self.name, 'delay-before-apply')
        self.encoding = cget(self.name, 'encoding')
        if not self.encoding:
            self.encoding = getpreferredencoding()

    def _validateConfiguration(self):


Generated by  Doxygen 1.6.0   Back to index