server/sources/extlite.py
branchtls-sprint
changeset 1409 f4dee84a618f
parent 1263 01152fffd593
child 1482 93c613913912
equal deleted inserted replaced
1408:6bf19f175ea5 1409:f4dee84a618f
   211         and the source implementor may use this method if necessary
   211         and the source implementor may use this method if necessary
   212         """
   212         """
   213         cu = session.pool[self.uri]
   213         cu = session.pool[self.uri]
   214         if attrs is None:
   214         if attrs is None:
   215             attrs = self.sqladapter.preprocess_entity(entity)
   215             attrs = self.sqladapter.preprocess_entity(entity)
   216         sql = self.sqladapter.sqlgen.update(SQL_PREFIX + str(entity.e_schema), attrs, ['eid'])
   216         sql = self.sqladapter.sqlgen.update(SQL_PREFIX + str(entity.e_schema), attrs,
       
   217                                             [SQL_PREFIX + 'eid'])
   217         cu.execute(sql, attrs)
   218         cu.execute(sql, attrs)
   218         
   219         
   219     def update_entity(self, session, entity):
   220     def update_entity(self, session, entity):
   220         """update an entity in the source"""
   221         """update an entity in the source"""
   221         raise NotImplementedError()
   222         raise NotImplementedError()