Exemplo n.º 1
0
 def get_date(self):
     if self._date is False:
         return None
     timeval = self._date
     if timeval:
         if is_callable(timeval):
             timeval = timeval()
     elif timeval is None:
         timeval = formatdate(None, True)
     return timeval
Exemplo n.º 2
0
 def message_id(self):
     mid = self._message_id
     if mid is False:
         return None
     return is_callable(mid) and mid() or mid