summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/pyblosxom-plugins/files/pycalendar.py')
-rw-r--r--www-apps/pyblosxom-plugins/files/pycalendar.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/www-apps/pyblosxom-plugins/files/pycalendar.py b/www-apps/pyblosxom-plugins/files/pycalendar.py
index 0b76264..248591c 100644
--- a/www-apps/pyblosxom-plugins/files/pycalendar.py
+++ b/www-apps/pyblosxom-plugins/files/pycalendar.py
@@ -65,7 +65,7 @@ __url__ = "http://pyblosxom.sourceforge.net/"
__description__ = "Builds a calendar."
from Pyblosxom import tools
-import time, calendar, string, os
+import time, calendar, string, os, types
def verify_installation(request):
# there's no configuration needed for this plugin.
@@ -113,7 +113,9 @@ class PyblCalendar:
self._cal = ""
return
- view = list(entry_list[0]["timetuple"])
+ view = list(entry_list[0].get("timetuple", (time.strftime("%Y", self._today),
+ time.strftime("%m", self._today),
+ time.strftime("%d", self._today))))
# this comes in as 2001, 2002, 2003, ... so we can convert it
# without an issue