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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 6
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)