Example #1
0
 def isNew(self):
     newsModule = ModulesHolder().getById("news")
     return self.getCreationDate() + timedelta(
         days=newsModule.getRecentDays()) > nowutc()
Example #2
0
 def _handleGet(self):
     newsModule = ModulesHolder().getById("news")
     return newsModule.getRecentDays()
Example #3
0
 def isNew(self):
     newsModule = ModulesHolder().getById("news")
     return self.getCreationDate() + timedelta(days = newsModule.getRecentDays()) > nowutc()