# HG changeset patch # User durandn # Date 1471445180 -7200 # Node ID 8de104e8f3ad1fd573a36685f90b647819212c51 # Parent 350bdfe7c2893085aee3de8c3e88455567b90a4e help page + version handling + footer diff -r 350bdfe7c289 -r 8de104e8f3ad src/iconolab/__init__.py --- a/src/iconolab/__init__.py Wed Aug 17 15:20:08 2016 +0200 +++ b/src/iconolab/__init__.py Wed Aug 17 16:46:20 2016 +0200 @@ -0,0 +1,46 @@ +VERSION = (0, 0, 1, "alpha", 0) + +VERSION_STR = ".".join(map(lambda i:"%02d" % (i,), VERSION[:2])) + +### +# https://github.com/django/django/blob/1.9.1/django/utils/version.py +# +def get_version(version): + "Returns a PEP 440-compliant version number from VERSION." + version = get_complete_version(version) + + # Now build the two parts of the version number: + # main = X.Y[.Z] + # sub = .devN - for pre-alpha releases + # | {a|b|rc}N - for alpha, beta, and rc releases + + main = get_main_version(version) + + sub = '' + if version[3] == 'alpha' and version[4] == 0: + sub = '.dev' + + elif version[3] != 'final': + mapping = {'alpha': 'a', 'beta': 'b', 'rc': 'rc'} + sub = mapping[version[3]] + str(version[4]) + + return str(main + sub) + +def get_complete_version(version): + """ + then checks for correctness of the tuple provided. + """ + assert len(version) == 5 + assert version[3] in ('alpha', 'beta', 'rc', 'final') + + return version + +def get_main_version(version=None): + "Returns main version (X.Y[.Z]) from VERSION." + version = get_complete_version(version) + parts = 2 if version[2] == 0 else 3 + return '.'.join(str(x) for x in version[:parts]) + +__version__ = get_version(VERSION) + +default_app_config = 'iconolab.apps.IconolabApp' diff -r 350bdfe7c289 -r 8de104e8f3ad src/iconolab/static/iconolab/img/glossary_example.png Binary file src/iconolab/static/iconolab/img/glossary_example.png has changed diff -r 350bdfe7c289 -r 8de104e8f3ad src/iconolab/static/iconolab/img/logo_IRI_footer.png Binary file src/iconolab/static/iconolab/img/logo_IRI_footer.png has changed diff -r 350bdfe7c289 -r 8de104e8f3ad src/iconolab/static/iconolab/img/logo_mcc_footer.png Binary file src/iconolab/static/iconolab/img/logo_mcc_footer.png has changed diff -r 350bdfe7c289 -r 8de104e8f3ad src/iconolab/templates/iconolab/glossary.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/iconolab/templates/iconolab/glossary.html Wed Aug 17 16:46:20 2016 +0200 @@ -0,0 +1,71 @@ +{% extends 'iconolab_base.html' %} + +{% load staticfiles %} + +{% load thumbnail %} + +{% load iconolab_tags %} + +{% block content %} +
Iconolab est une plateforme contributive grâce à laquelle les utilisateurs peuvent explorer et annoter des collections (fond) d'images fournis par plusieurs musées et référencés dans la base de données Joconde.
+
+ Sur cette plateforme, il est possible de découper des fragments d'une image et de lui assigner des mots-clés pour en faire une annotation. Les autres utilisateurs de la plateforme peuvent ensuite échanger, débattre et faire évoluer ces annotations.
+
+ Cette page décrit le vocabulaire employé sur la plateforme afin de vous aider à en comprendre le fonctionnement.
+