def __init__(self, project, config): super(ForgeGitApp, self).__init__(project, config) self.root = RepoRootController() self.api_root = RepoRestController() self.root.ref = RefsController(BranchBrowser) self.root.ci = CommitsController() setattr(self.root, 'merge-requests', MergeRequestsController())
def __init__(self, project, config): super(ForgeSVNApp, self).__init__(project, config) self.root = BranchBrowser() default_root = RepoRootController() self.root.refresh = default_root.refresh self.root.commit_browser = default_root.commit_browser self.root.commit_browser_data = default_root.commit_browser_data self.root.status = default_root.status self.admin = SVNRepoAdminController(self)