Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 def parse(self, input_data, reason):
     rv = parse_zeml(input_data, reason, self.app.markup_extensions)
     if reason == "comment":
         rv = sanitize(rv)
     return rv
Ejemplo n.º 4
0
 def parse(self, input_data, reason):
     rv = parse_zeml(input_data, reason, self.app.markup_extensions)
     if reason == 'comment':
         rv = sanitize(rv)
     return rv