'Returns a list of 4-tuples: (name, max index, min index, flags)'

def listRequest(self):

    l = self.db['groups']
    r = []
    for i in l:
        if len(self.db[i].keys()):
            low = min(self.db[i].keys())
            high = (max(self.db[i].keys()) + 1)
        else:
            low = high = 0
        if (i in self.db['moderators']):
            flags = 'm'
        else:
            flags = 'y'
        r.append((i, high, low, flags))
    return defer.succeed(r)
