Ejemplo n.º 1
0
 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])
Ejemplo n.º 2
0
 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])