Detect if red_fam is archived but has no detectable ending, set status 2 anyway

This commit is contained in:
2015-09-11 13:12:29 +02:00
parent 31ea512c41
commit 907ccad63a

View File

@@ -190,12 +190,18 @@ class RED_FAM_PARSER( RED_FAM ):
def status( self ):
"""
Handles detection of correct status
There are three possible stati:
- 0 Discussion is running --> no ending, page is not an archive
- 1 Discussion is over --> ending present, page is not an archive
- 2 Discussion is archived --> ending (normaly) present, page is an archive
"""
# Diskussion läuft --> Status ? --> 0 ! _ending
# Diskussion beendet --> Status 0 --> 1 _ending
# Diskussion archiviert --> Status 0/1 --> 2 ???
if not self._ending:
# No ending, discussion is running:
# Sometimes archived discussions also have no detectable ending
if not self._ending and not self._red_page_archive:
self._status = 0
else:
if not self._red_page_archive: