def __init__(self, name, rootpath, authorizer, utilities, config_dir):
    self.name = name
    self.rootpath = rootpath
    self.auth = authorizer
    self.diff_cmd = utilities.diff or 'diff'
    self.config_dir = config_dir or None

    # See if this repository is even viewable, authz-wise.
    if not vclib.check_root_access(self):
      raise vclib.ReposNotFound(name)
Exemple #2
0
    def __init__(self, name, rootpath, authorizer, utilities, config_dir):
        self.name = name
        self.rootpath = rootpath
        self.auth = authorizer
        self.diff_cmd = utilities.diff or 'diff'
        self.config_dir = config_dir or None

        # See if this repository is even viewable, authz-wise.
        if not vclib.check_root_access(self):
            raise vclib.ReposNotFound(name)
Exemple #3
0
  def __init__(self, name, rootpath, authorizer, utilities):
    if not os.path.isdir(rootpath):
      raise vclib.ReposNotFound(name) 
   
    self.name = name
    self.rootpath = rootpath
    self.auth = authorizer
    self.utilities = utilities

    # See if this repository is even viewable, authz-wise.
    if not vclib.check_root_access(self):
      raise vclib.ReposNotFound(name)
Exemple #4
0
    def __init__(self, name, rootpath, authorizer, utilities):
        if not os.path.isdir(rootpath):
            raise vclib.ReposNotFound(name)

        self.name = name
        self.rootpath = rootpath
        self.auth = authorizer
        self.utilities = utilities

        # See if this repository is even viewable, authz-wise.
        if not vclib.check_root_access(self):
            raise vclib.ReposNotFound(name)
Exemple #5
0
    def __init__(self, name, rootpath, authorizer, utilities, config_dir):
        if not (os.path.isdir(rootpath) \
                and os.path.isfile(os.path.join(rootpath, 'format'))):
            raise vclib.ReposNotFound(name)

        # Initialize some stuff.
        self.rootpath = rootpath
        self.name = name
        self.auth = authorizer
        self.diff_cmd = utilities.diff or 'diff'
        self.config_dir = config_dir or None

        # See if this repository is even viewable, authz-wise.
        if not vclib.check_root_access(self):
            raise vclib.ReposNotFound(name)
  def __init__(self, name, rootpath, authorizer, utilities, config_dir):
    if not (os.path.isdir(rootpath) \
            and os.path.isfile(os.path.join(rootpath, 'format'))):
      raise vclib.ReposNotFound(name)

    # Initialize some stuff.
    self.rootpath = rootpath
    self.name = name
    self.auth = authorizer
    self.diff_cmd = utilities.diff or 'diff'
    self.config_dir = config_dir or None

    # See if this repository is even viewable, authz-wise.
    if not vclib.check_root_access(self):
      raise vclib.ReposNotFound(name)