def generate_specifications(self, count=1):
        """Returns a mapping of count -> specification
        """

        out = {}

        # mapping of UID index to AR objects {1: <AR1>, 2: <AR2> ...}
        copy_from = self.get_copy_from()

        for arnum in range(count):
            # get the source object
            source = copy_from.get(arnum)

            if source is None:
                out[arnum] = {}
                continue

            # get the results range from the source object
            results_range = source.getResultsRange()

            # mapping of keyword -> rr specification
            specification = {}
            for rr in results_range:
                specification[rr.get("keyword")] = rr
            out[arnum] = specification

        return out
def generate_specifications ( self , count = 1 ) : out = { } copy_from = self . get_copy_from ( ) for arnum in range ( count ) : source = copy_from . get ( arnum ) if source is None : out [ arnum ] = { } continue results_range = source . getResultsRange ( ) specification = { } for rr in results_range : specification [ rr . get ( "keyword" ) ] = rr out [ arnum ] = specification return out
Returns a mapping of count -> specification