CountryList-Module: Implement method for checking if parsing is needed
This commit is contained in:
@@ -74,3 +74,17 @@ class CountryList():
|
|||||||
for attr in __attr:
|
for attr in __attr:
|
||||||
setattr( self, attr, None )
|
setattr( self, attr, None )
|
||||||
|
|
||||||
|
def parsing_needed( self, revid ):
|
||||||
|
"""
|
||||||
|
Check if current revid of CountryList differs from given one
|
||||||
|
|
||||||
|
@param int Revid to check against
|
||||||
|
|
||||||
|
@return True Given revid differs from current revid
|
||||||
|
False Given revid is equal to current revid
|
||||||
|
"""
|
||||||
|
|
||||||
|
if revid != self.page.latest_revision_id:
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user