def datasets_from_deployment(deployment):
 for node in deployment.nodes.itervalues():
  if (node.manifestations is None):
   continue
  for manifestation in node.manifestations.values():
   if manifestation.primary:
    (yield api_dataset_from_dataset_and_node(manifestation.dataset, node.uuid))

def datasets_from_deployment ( deployment ) : for node in deployment . nodes . itervalues ( ) : if ( node . manifestations is None ) : continue for manifestation in node . manifestations . values ( ) : if manifestation . primary : ( yield api_dataset_from_dataset_and_node ( manifestation . dataset , node . uuid ) )
extract the primary datasets from the supplied deployment instance .