view pylons_app/__init__.py @ 185:3380ca40cdba

added version generation to pylons_app and showed it into template. Propagated baseController with some data for acces into each controller. Fixed simplehg middleware to get proper name of application
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 22 May 2010 00:51:49 +0200
parents 564e40829f80
children 50a39f923f31
line wrap: on
line source

"""
Hg app, a web based mercurial repository managment based on pylons
"""

VERSION = (0, 6, 0, 'beta')

__version__ = '.'.join((str(each) for each in VERSION[:4]))

def get_version():
    """
    Returns shorter version (digit parts only) as string.
    """
    return '.'.join((str(each) for each in VERSION[:3]))