Guido Draheim  committed 1db9298

config options for iniadmin

  • Participants
  • Parent commits c90b3c3
  • Branches default

Comments (0)

Files changed (1)

File hgdirmanager/

 from trac.web import IRequestHandler, HTTPNotFound
 from import ITemplateProvider, add_warning, add_notice
 from trac.versioncontrol.api import IRepositoryProvider, RepositoryManager
+from trac.config import PathOption, BoolOption, Option
 import os, os.path
 from string import ascii_lowercase, digits
     """Provides Mercurial repositories from a directory."""
+    basepath = PathOption('hgdir', 'base_path', '/srv/hg',
+        doc="The base directory path where repositories are created")
+    recurse = BoolOption('hgdir', 'recurse', False,
+        doc="Whether to search for repositories below the base directory")
+    url_prefix = Option('hgdir', 'url_prefix',
+        doc="Where the repository is shown on the web frontend")
     # IRepositoryProvider
     def get_repositories(self):