server/sources/pyrorql.py
branchstable
changeset 6672 2008fd2f628c
parent 6655 75112ff0511d
child 6724 24bf6f181d0e
equal deleted inserted replaced
6671:c34fa947df07 6672:2008fd2f628c
   253         session = repo.internal_session()
   253         session = repo.internal_session()
   254         source = repo.system_source
   254         source = repo.system_source
   255         try:
   255         try:
   256             for etype, extid in modified:
   256             for etype, extid in modified:
   257                 try:
   257                 try:
   258                     eid = self.local_eid(cnx, extid, session)
   258                     eid = self.local_eid(cnx, extid, session)[0]
   259                     if eid is not None:
   259                     if eid is not None:
   260                         rset = session.eid_rset(eid, etype)
   260                         rset = session.eid_rset(eid, etype)
   261                         entity = rset.get_entity(0, 0)
   261                         entity = rset.get_entity(0, 0)
   262                         entity.complete(entity.e_schema.indexable_attributes())
   262                         entity.complete(entity.e_schema.indexable_attributes())
   263                         source.index_entity(session, entity)
   263                         source.index_entity(session, entity)