def polish_markup(self, object_map): if not self.index_fields: return rmap = {v: k for k, v in object_map.iteritems()} for idx, blocks in self.index_fields: polish_index_markup(idx, [rmap[b] for b in blocks])
def polish_markup(self, object_map): if not self.index_fields: return rmap = {v:k for k, v in object_map.iteritems()} for idx, blocks in self.index_fields: polish_index_markup(idx, [rmap[b] for b in blocks])