diff options
author | Gunnar Wrobel <wrobel@gentoo.org> | 2006-08-29 07:13:28 +0000 |
---|---|---|
committer | Gunnar Wrobel <wrobel@gentoo.org> | 2006-08-29 07:13:28 +0000 |
commit | abd9fc9e38c38c52763aa7f32fe5d6e7d6368cf3 (patch) | |
tree | 71ecaf5db80ae07d5c14dc3e723328c121f27319 /www-apps/pyblosxom-plugins/files/pycalendar.py | |
parent | Code fixes for the pyblosxom plugins (taken from the plugin release 1.3.0) (diff) | |
download | overlay-abd9fc9e38c38c52763aa7f32fe5d6e7d6368cf3.tar.gz overlay-abd9fc9e38c38c52763aa7f32fe5d6e7d6368cf3.tar.bz2 overlay-abd9fc9e38c38c52763aa7f32fe5d6e7d6368cf3.zip |
Added contact form nospam feature for pyblosxom plugins.
svn path=/stable/; revision=755
Diffstat (limited to 'www-apps/pyblosxom-plugins/files/pycalendar.py')
-rw-r--r-- | www-apps/pyblosxom-plugins/files/pycalendar.py | 6 |
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 |