original_docstring: 
          Registers multiple directory entries efficiently in one datastore access.
          Note: this fails if entries are already existing, so works for create only.
          
docstring: Registers multiple directory entries efficiently in one datastore access.
  Note: this fails if entries are already existing, so works for create only.
docstring_tokens: Registers multiple directory entries efficiently in one datastore access . Note : this fails if entries are already existing so works for create only .
code: def register_mult(self, entries):
          """
          Registers multiple directory entries efficiently in one datastore access.
          Note: this fails if entries are already existing, so works for create only.
          """
          if type(entries) not in (list, tuple):
              raise BadRequest("Bad entries type")
          de_list = []
          cur_time = get_ion_ts()
          for parent, key, attrs in entries:
              direntry = self._create_dir_entry(parent, key, attributes=attrs, ts=cur_time)
              de_list.append(direntry)
          pe_list = self._ensure_parents_exist(de_list, create=False)
          de_list.extend(pe_list)
          deid_list = [create_unique_directory_id() for i in xrange(len(de_list))]
          self.dir_store.create_mult(de_list, deid_list)
  
          if self.events_enabled and self.container.has_capability(CCAP.EXCHANGE_MANAGER):
              for de in de_list:
                  self.event_pub.publish_event(event_type="DirectoryModifiedEvent",
                                               origin=self.orgname + ".DIR", origin_type="DIR",
                                               key=de.key, parent=de.parent, org=self.orgname,
                                               sub_type="REGISTER." + de.parent[1:].replace("/", "."),
                                               mod_type=DirectoryModificationType.CREATE)
code_tokens: def register_mult ( self , entries ) : if type ( entries ) not in ( list , tuple ) : raise BadRequest ( "Bad entries type" ) de_list = [ ] cur_time = get_ion_ts ( ) for parent , key , attrs in entries : direntry = self . _create_dir_entry ( parent , key , attributes = attrs , ts = cur_time ) de_list . append ( direntry ) pe_list = self . _ensure_parents_exist ( de_list , create = False ) de_list . extend ( pe_list ) deid_list = [ create_unique_directory_id ( ) for i in xrange ( len ( de_list ) ) ] self . dir_store . create_mult ( de_list , deid_list ) if self . events_enabled and self . container . has_capability ( CCAP . EXCHANGE_MANAGER ) : for de in de_list : self . event_pub . publish_event ( event_type = "DirectoryModifiedEvent" , origin = self . orgname + ".DIR" , origin_type = "DIR" , key = de . key , parent = de . parent , org = self . orgname , sub_type = "REGISTER." + de . parent [ 1 : ] . replace ( "/" , "." ) , mod_type = DirectoryModificationType . CREATE )
short_docstring: Registers multiple directory entries efficiently in one datastore access.
short_docstring_tokens: Registers multiple directory entries efficiently in one datastore access .
comment: """
          Registers multiple directory entries efficiently in one datastore access.
          Note: this fails if entries are already existing, so works for create only.
          """