def __init__(self, text, creator, repost=None, reply=None): self._text = text self._html = _renderHTML(text) self._names = frozenset([x[1:] for x in _NAME.findall(self._text)]) self._tags = frozenset([x[1:] for x in _TAG.findall(self._text)]) self._communities = frozenset( [x[1:] for x in _COMMUNITY.findall(self._text)]) self.creator = self.modified_by = creator set_created(self, None) self.modified = self.created = _now() self.repost = repost self.reply = reply
def _callFUT(self, object, event): from karl.models.subscribers import set_created return set_created(object, event)