Switch to side-by-side view
--- a/Allura/allura/lib/app_globals.py +++ b/Allura/allura/lib/app_globals.py @@ -9,6 +9,7 @@ import cgi import json import shlex +import datetime from urllib import urlencode from ConfigParser import RawConfigParser from collections import defaultdict @@ -325,6 +326,9 @@ ''' return json.dumps(dict(text=text)) + def year(self): + return datetime.datetime.utcnow().year + class MockSOLR(object): class MockHits(list):