コード例 #1
0
 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
コード例 #2
0
ファイル: chatter.py プロジェクト: hj91/karl
 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
コード例 #3
0
ファイル: test_subscribers.py プロジェクト: lslaz1/karl
 def _callFUT(self, object, event):
     from karl.models.subscribers import set_created
     return set_created(object, event)
コード例 #4
0
ファイル: test_subscribers.py プロジェクト: Falmarri/karl
 def _callFUT(self, object, event):
     from karl.models.subscribers import set_created
     return set_created(object, event)