def get_all_devices_in_portal(self):
rids = self.get_portal_by_name(<EOL>self.portal_name()<EOL>)[<NUM_LIT:2>][<NUM_LIT:1>]['<STR_LIT:info>']['<STR_LIT>']<EOL>device_rids = [ rid.strip() for rid in rids ]<EOL>blocks_of_ten = [ device_rids[x:x+<NUM_LIT:10>] for x in range(<NUM_LIT:0>, len(device_rids), <NUM_LIT:10>) ]<EOL>devices = []<EOL>for block_of_ten in blocks_of_ten:<EOL><INDENT>retval = self.get_multiple_devices(block_of_ten)<EOL>if retval is not None:<EOL><INDENT>devices.extend( retval )<EOL><DEDENT>else:<EOL><INDENT>print("<STR_LIT>".format(retval))<EOL><DEDENT><DEDENT>for device in devices:<EOL><INDENT>dictify_device_meta(device)<EOL><DEDENT>return devices<EOL>
This loops through the get_multiple_devices method 10 rids at a time.