2
0
mirror of https://github.com/WikiTeam/wikiteam synced 2024-11-04 12:00:28 +00:00

wikifarms

git-svn-id: https://wikiteam.googlecode.com/svn/trunk@366 31edc4fc-5e31-b4c4-d58b-c8bc928bcb95
This commit is contained in:
emijrp 2012-03-04 13:12:40 +00:00
parent e90af36bb7
commit 971fa5905f

3
gui.py
View File

@ -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):