def tasks(self, **opts):
        """
        Convenience wrapper around listTasks(...) for this channel ID.

        Tasks are sorted by priority and creation time.

        :param **opts: "opts" dict to the listTasks RPC.
                       For example, "state=[task_states.OPEN]" will return
                       only the "OPEN" tasks.
        :returns: deferred that when fired returns a list of Tasks.
        """
        opts['channel_id'] = self.id
        qopts = {'order': 'priority,create_time'}
        return self.connection.listTasks(opts, qopts)
def tasks ( self , ** opts ) : opts [ 'channel_id' ] = self . id qopts = { 'order' : 'priority,create_time' } return self . connection . listTasks ( opts , qopts )
Convenience wrapper around listTasks(...) for this channel ID.

        Tasks are sorted by priority and creation time.

        :param **opts: "opts" dict to the listTasks RPC.
                       For example, "state=[task_states.OPEN]" will return
                       only the "OPEN" tasks.
        :returns: deferred that when fired returns a list of Tasks.