no API break

This commit is contained in:
Christophe Benz 2010-03-11 11:49:27 +01:00 committed by Christophe Benz
commit e4846ff2a4
4 changed files with 13 additions and 4 deletions

View file

@ -73,10 +73,19 @@ class Message:
return self.new
class ICapMessages:
def iter_messages(self, thread=None):
def getNewMessages(self, thread=None):
"""
Get new messages from last time this function has been called.
@param thread [str] if given, get new messages for a specific thread.
@return [list] a list of Message objects.
"""
return [m for m in self.iterNewMessages(thread)]
def iterNewMessages(self, thread=None):
"""
Iterates on new messages from last time this function has been called.
@param thread [str] if given, get new messages for a specific thread.
@return [list] a list of Message objects.
"""