Commits

g...@13f79535-47bb-0310-9956-ffa450edef68  committed 12aa956 Draft

trac: custom modifications to show more appropriate info about trac revisions in bloodhound - not intended for consideration by trac - towards #157 (from olemis)

  • Participants
  • Parent commits 11a9a25

Comments (0)

Files changed (4)

                  'htdocs/css/jquery-ui/*.*',
                  'htdocs/css/jquery-ui/images/*.*',
                  'htdocs/guide/*', 'locale/*/LC_MESSAGES/messages.mo',
-                 'locale/*/LC_MESSAGES/tracini.mo'],
+                 'locale/*/LC_MESSAGES/tracini.mo',
+                 'TRAC_VERSION'],
         'trac.wiki': ['default-pages/*'],
         'trac.ticket': ['workflows/*.ini'],
     },

File trac/TRAC_VERSION

+0.13dev-r11046 
 from __future__ import with_statement
 
 import os.path
+import pkg_resources 
 import setuptools
 import sys
 from urlparse import urlsplit
 
     def get_system_info(self):
         from trac import core, __version__ as VERSION
-        yield 'Trac', get_pkginfo(core).get('version', VERSION)
+        yield 'Trac', pkg_resources.resource_string('trac', 'TRAC_VERSION')
+        yield 'Bloodhound Trac', get_pkginfo(core).get('version', VERSION)
         yield 'Python', sys.version
         yield 'setuptools', setuptools.__version__
         from trac.util.datefmt import pytz

File trac/web/chrome.py

     def populate_data(self, req, data):
         d = self._default_context_data.copy()
         d['trac'] = {
-            'version': VERSION,
+            'version': pkg_resources.resource_string('trac', 'TRAC_VERSION'),
             'homepage': 'http://trac.edgewall.org/', # FIXME: use setup data
         }