示例#1
0
    def changes(self, status="open", **search):
        result = []

        query = 'status:%s' % status

        for key, value in search.iteritems():
            query += ' %s:%s' % (key, value)

        _service = service.ChangeListService(self.connection)
        for change in self._paginate(_service.allQueryNext, query):
            result.append(decode.decode_change(change))

        return result
示例#2
0
    def changes(self, status="open", project=None):
        result = []

        if isinstance(project, model.Project):
            project = project.name

        search = "status: %s" % status
        if project:
            search += " project:%s" % project
        _service = service.ChangeListService(self.connection)
        for change in self._paginate(_service.allQueryNext, search):
            result.append(decode.decode_change(change))

        return result