Skip to content
Snippets Groups Projects
Commit 0b8d5c14 authored by Vermaat's avatar Vermaat
Browse files

Implement copyright years as package constant

git-svn-id: https://humgenprojects.lumc.nl/svn/mutalyzer/trunk@482 eb6bd6ab-9ccd-42b9-aceb-e2899b4a52f1
parent 7f26e9e0
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,6 @@ HGVS variant nomenclature checker.
import os
import time
# On the event of a new release, we update the __version_info__ and __date__
......@@ -25,7 +24,6 @@ RELEASE = False
__version_info__ = ('2', '0', 'beta-15', 'dev')
__date__ = '26 Jan 2012'
__copyrightYear__ = time.strftime("%Y") # Fixate after final release.
__version__ = '.'.join(__version_info__)
......@@ -37,6 +35,8 @@ __homepage__ = 'http://mutalyzer.nl'
NOMENCLATURE_VERSION_INFO = ('2', '0')
NOMENCLATURE_VERSION = '.'.join(NOMENCLATURE_VERSION_INFO)
COPYRIGHT_YEARS = (2007, int(__date__[-4:]))
SOAP_NAMESPACE = 'http://mutalyzer.nl/2.0/services'
......
This diff is collapsed.
......@@ -136,7 +136,6 @@ class render_tal :
context = simpleTALES.Context()
context.addGlobal("interactive", not standalone)
context.addGlobal("copyrightYear", mutalyzer.__copyrightYear__)
for name, value in self.globals.items() :
context.addGlobal(name, value)
......@@ -177,6 +176,7 @@ render = render_tal(os.path.join(mutalyzer.package_root(), 'templates'),
'nomenclatureVersion' : mutalyzer.NOMENCLATURE_VERSION,
'releaseDate' : mutalyzer.__date__,
'release' : mutalyzer.RELEASE,
'copyrightYears' : mutalyzer.COPYRIGHT_YEARS,
'contactEmail' : config.get('email')})
# web.py application
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment