(self, rdb)
return self.domains
Returns a list of domain id's that this user owns
Returns a list of domain id's that this user owns
Returns a list of domain id s that this user owns
def getDomains(self, rdb):
        ''' Returns a list of domain id's that this user owns '''
        # Get Domains
        results = r.table('domains').filter({'uid': self.uid}).run(rdb)
        domains = {}
        for x in results:
            domains[x['id']] = x
        self.domains = domains
        return self.domains
def getDomains ( self , rdb ) : # Get Domains results = r . table ( 'domains' ) . filter ( { 'uid' : self . uid } ) . run ( rdb ) domains = { } for x in results : domains [ x [ 'id' ] ] = x self . domains = domains return self . domains