def save(self, mark_changed=True, *arg, **kw):
    if ((not self.is_public) and mark_changed):
        if (self.publish_state == Publishable.PUBLISH_DELETE):
            raise PublishException('Attempting to save model marked for deletion')
        self.publish_state = Publishable.PUBLISH_CHANGED
    super(Publishable, self).save(*arg, **kw)
def save(self, mark_changed=True, *arg, **kw):
    if ((not self.is_public) and mark_changed):
        if (self.publish_state == Publishable.PUBLISH_DELETE):
            raise PublishException('Attempting to save model marked for deletion')
        self.publish_state = Publishable.PUBLISH_CHANGED
    super(Publishable, self).save(*arg, **kw)