src/catedit/version.py
author Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
Fri, 30 Jan 2015 12:38:15 +0100
changeset 40 8c32ea41b391
parent 38 d1bc73ce855a
child 42 dac9b1248e0f
permissions -rw-r--r--
New version + Reworked login process to suppress unauthenticated request + reworked file persistence + added tests module and API tests + reworked how the list repositories user can access is generated (can now only access repositories that are both in his repository list AND in the config repository list, so there is no need to add every new user to all repositories)

"""
    version.py:
    Module to get the current CatEdit version, the only place where we have to
    increment version numbers
"""

__all__ = ["VERSION", "get_version", "CURRENT_VERSION"]

VERSION = (0, 1, 3)

def get_version():
    """
        Function to convert the tuple to a string
    """
    version = "%s.%s" % (VERSION[0], VERSION[1])
    if version[2]:
        version = "%s.%s" % (version, VERSION[2])
    return version

CURRENT_VERSION = get_version()