Merge branch 'summarypage-module'

This commit is contained in:
2015-11-21 11:52:21 +01:00

View File

@@ -102,7 +102,6 @@ class SummaryPageEntry():
# Check if parsing country list is needed
if( self.countrylist.is_parsing_needed( self.countrylist_revid )):
self.countrylist.parse()
self.correct_chartein()
self.update_params()
@@ -135,12 +134,20 @@ class SummaryPageEntry():
try:
self.countrylist = CountryList( self.countrylist_wikilink )
if( self.countrylist and \
self.countrylist.is_parsing_needed( self.countrylist_revid )):
self.countrylist.parse()
# Maybe fallback to last years list
except CountryListError:
self.countrylist_wikilink.title = link_title
self.countrylist = CountryList( self.countrylist_wikilink )
if( self.countrylist and \
self.countrylist.is_parsing_needed( self.countrylist_revid )):
self.countrylist.parse()
if not self.countrylist:
raise SummaryPageEntryError( "CountryList does not exists!" )