server/sources/native.py
branchstable
changeset 7786 18a366267612
parent 7754 e3da9e7fc584
child 7787 d9607ae447d2
equal deleted inserted replaced
7783:8b70a0fb840a 7786:18a366267612
   410 
   410 
   411 
   411 
   412     def init(self, activated, source_entity):
   412     def init(self, activated, source_entity):
   413         self.init_creating(source_entity._cw.cnxset)
   413         self.init_creating(source_entity._cw.cnxset)
   414         try:
   414         try:
   415             source_entity._cw.system_sql('SELECT COUNT(asource) FROM entities')
   415             # test if 'asource' column exists
       
   416             source_entity._cw.system_sql('SELECT asource FROM entities LIMIT 1')
   416         except Exception, ex:
   417         except Exception, ex:
   417             self.eid_type_source = self.eid_type_source_pre_131
   418             self.eid_type_source = self.eid_type_source_pre_131
   418 
   419 
   419     def shutdown(self):
   420     def shutdown(self):
   420         if self._eid_creation_cnx:
   421         if self._eid_creation_cnx: