code: def is_published(self):
          "Return True if the Publishable is currently active."
          cur_time = now()
          return self.published and cur_time > self.publish_from and \
              (self.publish_to is None or cur_time < self.publish_tof is_published(self):
          "Return True if the Publishable is currently active."
          cur_time = now()
          return self.published and cur_time > self.publish_from and \
              (self.publish_to is None or cur_time < self.publish_to)
docs: Return True if the Publishable is currently active.