entity.py
branchtls-sprint
changeset 1132 96752791c2b6
parent 1101 0c067de38e46
child 1138 22f634977c95
equal deleted inserted replaced
1131:544609e83317 1132:96752791c2b6
   949         from indexer.query_objects import tokenize
   949         from indexer.query_objects import tokenize
   950         words = []
   950         words = []
   951         for rschema in self.e_schema.indexable_attributes():
   951         for rschema in self.e_schema.indexable_attributes():
   952             try:
   952             try:
   953                 value = self.printable_value(rschema, format='text/plain')
   953                 value = self.printable_value(rschema, format='text/plain')
   954             except TransformError, ex:
   954             except TransformError:
   955                 continue
   955                 continue
   956             except:
   956             except:
   957                 self.exception("can't add value of %s to text index for entity %s",
   957                 self.exception("can't add value of %s to text index for entity %s",
   958                                rschema, self.eid)
   958                                rschema, self.eid)
   959                 continue
   959                 continue