summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/pyblosxom-plugins/files/blocks.py')
-rw-r--r--www-apps/pyblosxom-plugins/files/blocks.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/www-apps/pyblosxom-plugins/files/blocks.py b/www-apps/pyblosxom-plugins/files/blocks.py
index 6fac35a..a30f357 100644
--- a/www-apps/pyblosxom-plugins/files/blocks.py
+++ b/www-apps/pyblosxom-plugins/files/blocks.py
@@ -10,6 +10,8 @@ __url__ = "http://www.gunnarwrobel.de"
__description__ = "Shows several categories at the same time."
__license__ = "GPL 2"
+import re
+
# Pyblosxom imports
from Pyblosxom.renderers.blosxom import Renderer, NoSuchFlavourException
from Pyblosxom import tools
@@ -161,6 +163,17 @@ class Blocklist(list):
return default
else:
return result
+ if key == 'timetuple':
+ result = 0
+ for i in self:
+ j = i.get('timetuple', 0)
+ if j > result:
+ result = j
+ if not result:
+ return default
+ else:
+ return result
+
return default
def set_path(self, path):