def set_python(self, value):
if not self.multiselect:<EOL><INDENT>if value and not isinstance(value, list):<EOL><INDENT>value = [value]<EOL><DEDENT><DEDENT>value = value or []<EOL>records = SortedDict()<EOL>for record in value:<EOL><INDENT>self.validate_value(record)<EOL>records[record.id] = record<EOL><DEDENT>return_value = self._set(records)<EOL>self.record._raw['<STR_LIT>'][self.id] = self.get_swimlane()<EOL>return return_value<EOL>
Expect list of record instances, convert to a SortedDict for internal representation