# HG changeset patch # User Pawel Solyga # Date 1233865992 0 # Node ID 1adb4d1cce64e257810eced0dccb9999fabda32e # Parent aad447d05cfc0f0789b43325f9b9a721f866d78c Add missing blank line to soc.logic.helper.timeline module. Patch by: Pawel Solyga Reviewed by: to-be-reviewed diff -r aad447d05cfc -r 1adb4d1cce64 app/soc/logic/helper/timeline.py --- a/app/soc/logic/helper/timeline.py Thu Feb 05 20:32:45 2009 +0000 +++ b/app/soc/logic/helper/timeline.py Thu Feb 05 20:33:12 2009 +0000 @@ -35,6 +35,7 @@ return isBeforeEvent(entity, '%s_start' % period) + def isBeforeEvent(entity, event): """Returns true iff the current DateTime is before the given event. @@ -49,6 +50,7 @@ else: return False + def isActivePeriod(entity, period): """Returns true iff the current DateTime is between period_start and period_end. @@ -65,6 +67,7 @@ return period_started and period_not_ended + def isAfterPeriod(entity, period): """Returns true iff the current DateTime is after the given period_end. @@ -75,6 +78,7 @@ return isAfterEvent(entity, '%s_end' % period) + def isAfterEvent(entity, event): """Returns true iff the current DateTime is after the given event. @@ -89,6 +93,7 @@ else: return False + def getDateTimeByName(entity, name): """Returns the DateTime property with the given name.