server/src/remieplt/__init__.py
author durandn
Thu, 17 Sep 2015 11:58:01 +0200
changeset 153 a5a4c9022534
parent 147 51e129ee6086
child 158 b5fc6f8ffeb3
permissions -rw-r--r--
Added support for deleting annotations for teacher scenario
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
147
51e129ee6086 new cas client version + correct firstname and lastname handling + new version
ymh <ymh.work@gmail.com>
parents: 145
diff changeset
     1
VERSION = (0, 0, 22, "final", 0)
3
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION[:2])))
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
def get_version():
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
    version = '%s.%s' % (VERSION[0], VERSION[1])
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
    if VERSION[2]:
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
        version = '%s.%s' % (version, VERSION[2])
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
    if VERSION[3] == 'alpha':
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
        version = '%s-alpha.%s' % (version, VERSION[4])
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
    else:
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
        if VERSION[3] != 'final':
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
            version = '%s %s %s' % (version, VERSION[3], VERSION[4])
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
    return version
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
fc0f3e398166 Creation of Django server project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
__version__ = get_version()