entities/adapters.py
changeset 10473 23a2fa8cb725
parent 10446 1e6655cff5ab
child 10662 10942ed172de
equal deleted inserted replaced
10472:7dd84b69c7d4 10473:23a2fa8cb725
   141         for rschema in entity.e_schema.indexable_attributes():
   141         for rschema in entity.e_schema.indexable_attributes():
   142             if (entity.e_schema, rschema) in pending:
   142             if (entity.e_schema, rschema) in pending:
   143                 continue
   143                 continue
   144             weight = self.attr_weight.get(rschema, 'C')
   144             weight = self.attr_weight.get(rschema, 'C')
   145             try:
   145             try:
   146                 value = entity.printable_value(rschema, format='text/plain')
   146                 value = entity.printable_value(rschema, format=u'text/plain')
   147             except TransformError:
   147             except TransformError:
   148                 continue
   148                 continue
   149             except Exception:
   149             except Exception:
   150                 self.exception("can't add value of %s to text index for entity %s",
   150                 self.exception("can't add value of %s to text index for entity %s",
   151                                rschema, entity.eid)
   151                                rschema, entity.eid)