本文整理汇总了Python中mailpile.plugins.search.SearchResults类的典型用法代码示例。如果您正苦于以下问题:Python SearchResults类的具体用法?Python SearchResults怎么用?Python SearchResults使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了SearchResults类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, session, idx, new, sent, **kwargs):
SearchResults.__init__(self, session, idx, **kwargs)
self.new_messages = new
self.sent_messages = sent
if new:
self['created'] = [m.msg_mid() for m in new]
if sent:
self['sent'] = [m.msg_mid() for m in new]
示例2: _prune_msg_tree
def _prune_msg_tree(self, *args, **kwargs):
kwargs['editable'] = True
return SearchResults._prune_msg_tree(self, *args, **kwargs)
示例3: __init__
def __init__(self, session, idx, new_messages, **kwargs):
SearchResults.__init__(self, session, idx, *kwargs)
self.new_messages = new_messages