From 971fa5905f3cde256a5e379e3d2b54980df0e107 Mon Sep 17 00:00:00 2001 From: emijrp Date: Sun, 4 Mar 2012 13:12:40 +0000 Subject: [PATCH] wikifarms git-svn-id: https://wikiteam.googlecode.com/svn/trunk@366 31edc4fc-5e31-b4c4-d58b-c8bc928bcb95 --- gui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui.py b/gui.py index b9b2197..c7a2fb1 100644 --- a/gui.py +++ b/gui.py @@ -37,8 +37,10 @@ TODO: """ wikifarms = { + '': 'Unknown', 'opensuseorg': 'OpenSuSE', 'referatacom': 'Referata', + 'Unknown': 'Unknown', 'wikitravelorg': 'WikiTravel', } @@ -120,6 +122,7 @@ class App: wikifarm = 'Unknown' if re.search(ur"(opensuseorg|referatacom|wikitravelorg)[_-]", filename): wikifarm = re.findall(ur"(gentoo_wikicom|opensuseorg|referatacom|wikitravelorg)[_-]", filename)[0] + wikifarm = wikifarms[wikifarm] size = i.group('size') date = 'Unknown' if re.search(ur"\-(\d{8})\-", filename):