Пример #1
0
 def expires(self):
     shared_data = ISharedBuyablePeriodData(self.context)
     expires = shared_data.get('buyable_expires')
     if expires:
         expires = datetime.fromtimestamp(expires)
     return expires
Пример #2
0
 def expires(self):
     shared_data = ISharedBuyablePeriodData(self.context)
     expires = shared_data.get('buyable_expires')
     if expires:
         expires = datetime.fromtimestamp(expires)
     return expires
Пример #3
0
 def effective(self):
     shared_data = ISharedBuyablePeriodData(self.context)
     effective = shared_data.get('buyable_effective')
     if effective:
         effective = datetime.fromtimestamp(effective)
     return effective
Пример #4
0
 def effective(self):
     shared_data = ISharedBuyablePeriodData(self.context)
     effective = shared_data.get('buyable_effective')
     if effective:
         effective = datetime.fromtimestamp(effective)
     return effective