Opened 8 years ago
Last modified 8 years ago
#12313 closed defect
trac.versioncontrol.admin.RepositoryAdminPanel depends on trac.versioncontrol.web_ui.main.VersionControlUI — at Initial Version
Reported by: | Ryan J Ollos | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 1.0.10 |
Component: | general | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
When using trac-github integration the components trac.versioncontrol.web_ui.*
are disabled
. With trac.versioncontrol.web_ui.* = disabled
the repository admin panel (trac.versioncontrol.admin.RepositoryAdminPanel
) shows an error because the template is not available.
The problem is that admin_repositories.html
template will only be available if trac.versioncontrol.web_ui.main
is enabled. The following configuration will work, but it's not very obvious to the user:
trac.versioncontrol.web_ui.* = disabled trac.versioncontrol.web_ui.main.* = enabled
Maybe there's a better solution than having a dedicated Component for implementing ITemplateProvider
: tags/trac-1.0.9/trac/versioncontrol/web_ui/main.py.
I propose to move the ITemplateProvider
implementation to RepositoryManager.