server/sources/__init__.py
changeset 2627 d710278e0c1c
parent 2625 d6012db7b93e
child 2650 18aec79ec3a3
equal deleted inserted replaced
2626:e297294dff12 2627:d710278e0c1c
   311         table (on-the-fly if possible, eg for the system source whose the given
   311         table (on-the-fly if possible, eg for the system source whose the given
   312         cursor come from). If not possible, inserts all data by calling
   312         cursor come from). If not possible, inserts all data by calling
   313         .executemany().
   313         .executemany().
   314         """
   314         """
   315         res = self.syntax_tree_search(session, union, args, varmap=varmap)
   315         res = self.syntax_tree_search(session, union, args, varmap=varmap)
   316         session.pool.source('system')._manual_insert(res, table, session)
   316         session.pool.source('system').manual_insert(res, table, session)
   317 
       
   318 
   317 
   319     # system source don't have to implement the two methods below
   318     # system source don't have to implement the two methods below
   320 
   319 
   321     def before_entity_insertion(self, session, lid, etype, eid):
   320     def before_entity_insertion(self, session, lid, etype, eid):
   322         """called by the repository when an eid has been attributed for an
   321         """called by the repository when an eid has been attributed for an