~ubuntu-branches/ubuntu/precise/trac/precise

« back to all changes in this revision

Viewing changes to trac/versioncontrol/web_ui/main.py

  • Committer: Bazaar Package Importer
  • Author(s): Luis Matos
  • Date: 2008-07-13 23:46:20 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20080713234620-13ynpdpkbaymfg1z
Tags: 0.11-2
* Re-added python-setup-tools to build dependences. Closes: #490320 #468705
* New upstream release Closes: 489727
* Added sugestion for other vcs support available: git bazaar mercurial 
* Added spamfilter plugin to sugests
* Moved packaging from python-support to python-central
* Added an entry to the NEWS about the cgi Closes: #490275
* Updated 10_remove_trac_suffix_from_title patch to be used in 0.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
#
 
3
# Copyright (C) 2007-2008 Edgewall Software
 
4
# All rights reserved.
 
5
#
 
6
# This software is licensed as described in the file COPYING, which
 
7
# you should have received as part of this distribution. The terms
 
8
# are also available at http://trac.edgewall.org/wiki/TracLicense.
 
9
#
 
10
# This software consists of voluntary contributions made by many
 
11
# individuals. For the exact contribution history, see the revision
 
12
# history and logs, available at http://trac.edgewall.org/log/.
 
13
 
 
14
import pkg_resources
 
15
 
 
16
from trac.core import *
 
17
from trac.web.chrome import ITemplateProvider
 
18
 
 
19
 
 
20
class VersionControlUI(Component):
 
21
 
 
22
    implements(ITemplateProvider)
 
23
 
 
24
    # ITemplateProvider methods
 
25
 
 
26
    def get_htdocs_dirs(self):
 
27
        return []
 
28
 
 
29
    def get_templates_dirs(self):
 
30
        return [pkg_resources.resource_filename('trac.versioncontrol',
 
31
                                                'templates')]