コード例 #1
0
 def matches(self, context):
     return is_in_time_range(timezone.now(), self.hour_start, self.hour_end,
                             self.values)
コード例 #2
0
ファイル: basket_conditions.py プロジェクト: ruqaiya/shuup
 def matches(self, basket, lines):
     return is_in_time_range(timezone.now(), self.hour_start, self.hour_end, self.values)
コード例 #3
0
ファイル: basket_conditions.py プロジェクト: wsmoyer/shuup
 def matches(self, basket, lines):
     return is_in_time_range(timezone.now(), self.hour_start, self.hour_end,
                             self.values)
コード例 #4
0
ファイル: context_conditions.py プロジェクト: ruqaiya/shuup
 def matches(self, context):
     return is_in_time_range(timezone.now(), self.hour_start, self.hour_end, self.values)