def get_project_from_domain(domain_ref):
 project_ref = domain_ref.copy()
 project_ref['is_domain'] = True
 project_ref['domain_id'] = None
 project_ref['parent_id'] = None
 return project_ref

def get_project_from_domain ( domain_ref ) : project_ref = domain_ref . copy ( ) project_ref [ 'is_domain' ] = True project_ref [ 'domain_id' ] = None project_ref [ 'parent_id' ] = None return project_ref
create a project ref from the provided domain ref .