Revision: 6031
Author: misza13
Date: 2008-10-26 18:10:52 +0000 (Sun, 26 Oct 2008)
Log Message:
-----------
adding support for week number in archive page names ('week' variable; first day
of week is monday; varaible is an integer (specify as %(week)02d to pad with a zero))
Modified Paths:
--------------
trunk/pywikipedia/archivebot.py
Modified: trunk/pywikipedia/archivebot.py
===================================================================
--- trunk/pywikipedia/archivebot.py 2008-10-26 17:52:05 UTC (rev 6030)
+++ trunk/pywikipedia/archivebot.py 2008-10-26 18:10:52 UTC (rev 6031)
@@ -430,6 +430,7 @@
'month' : TStuple[1],
'monthname' : int2month(TStuple[1]),
'monthnameshort' : int2month_short(TStuple[1]),
+ 'week' : int(time.strftime('%W',TStuple)),
}
archive = archive % vars
if self.feedArchive(archive,t,maxArchSize,vars):
Show replies by date