code: def get_all_devices_in_portal(self):
          
          rids = self.get_portal_by_name(
                          self.portal_name()
                  )[2][1]['info']['aliases']
  
          # print("RIDS: {0}".format(rids))
          device_rids = [ rid.strip() for rid in rids ]
  
          blocks_of_ten = [ device_rids[x:x+10] for x in range(0, len(device_rids), 10) ]
          devices = []
          for block_of_ten in blocks_of_ten:
              retval = self.get_multiple_devices(block_of_ten)
              if retval is not None:
                  devices.extend( retval )
              else:
                  print("Not adding to device list: {!r}".format(retval))
  
          # Parse 'meta' key's raw string values for each device
          for device in devices:
              dictify_device_meta(device)
  
          return devices
docs: This loops through the get_multiple_devices method 10 rids at a time.