'Sets all fields for a particular iteration.
Takes same form as all the other setting methods. Sets int,
str and datetime variables safely.
:param
tko_iteration: a tko test iteration.
pb_iteration: an empty pb test iteration.'

def set_pb_iteration(self, tko_iteration, pb_iteration):

    self.set_trivial_attr(tko_iteration, pb_iteration, self.iteration_type_dict)
    for (key, val) in tko_iteration.attr_keyval.iteritems():
        newkeyval = pb_iteration.attr_keyval.add()
        newkeyval.name = key
        newkeyval.value = str(val)
    for (key, val) in tko_iteration.perf_keyval.iteritems():
        newkeyval = pb_iteration.perf_keyval.add()
        newkeyval.name = key
        newkeyval.value = str(val)
