def __init__(self, id, message, user=Ellipsis): self.message = parse_zeml(message, 'system') self.id = id self.sent_date = datetime.utcnow() if user is Ellipsis: self.user = get_request().user else: self.user = user
def parse(self, input_data, reason): rv = parse_zeml(input_data, reason, self.app.markup_extensions) if reason == "comment": rv = sanitize(rv) return rv
def parse(self, input_data, reason): rv = parse_zeml(input_data, reason, self.app.markup_extensions) if reason == 'comment': rv = sanitize(rv) return rv