equal
deleted
inserted
replaced
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: |