web/ldtplatform/__init__.py
author rougeronj
Wed, 19 Sep 2012 18:16:19 +0200
changeset 789 d92d032a6d78
parent 636 1af629add261
permissions -rw-r--r--
Commit Julien: Champ de recherche de users et groups dans l'ajout de content, amélioré pour que le mot "recherche" disparaisse au moment ou l'on clique sur le champ. Meme modification dans la page "groups". Permettre à un user qui a le droit de creer un group, d'en creer un (le label de la permission est "auth.add_group").
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
636
1af629add261 bump versions
ymh <ymh.work@gmail.com>
parents: 603
diff changeset
     1
VERSION = (1, 7, 0, "final", 0)
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION[:2])))
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
def get_version():
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
    version = '%s.%s' % (VERSION[0], VERSION[1])
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
    if VERSION[2]:
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
        version = '%s.%s' % (version, VERSION[2])
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
    if VERSION[3:] == ('alpha', 0):
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
        version = '%s pre-alpha' % version
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
    else:
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
        if VERSION[3] != 'final':
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
            version = '%s %s %s' % (version, VERSION[3], VERSION[4])
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
    return version
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
__version__ = get_version()