(self, domaindata, rdb)
This will create a domain with the supplied domain information
This will create a domain with the supplied domain information
This will create a domain with the supplied domain information
def createDomain(self, domaindata, rdb):
        ''' This will create a domain with the supplied domain information '''
        if self.exists(domaindata['domain'], rdb):
            return 'exists'
        else:
            results = r.table('domains').insert(domaindata).run(rdb)
            if results['inserted'] == 1:
                return results['generated_keys'][0]
            else:
                return False
def createDomain ( self , domaindata , rdb ) : if self . exists ( domaindata [ 'domain' ] , rdb ) : return 'exists' else : results = r . table ( 'domains' ) . insert ( domaindata ) . run ( rdb ) if results [ 'inserted' ] == 1 : return results [ 'generated_keys' ] [ 0 ] else : return False