'String representation of this resource'

def __repr__(self):

    pkey = self.table._id.name
    if self._rows:
        ids = [r[pkey] for r in self]
        return ('<S3Resource    %s    %s>' % (self.tablename, ids))
    else:
        return ('<S3Resource    %s>' % self.tablename)
