server/sources/extlite.py
changeset 8900 010a59e12d89
parent 8695 358d8bed9626
child 9267 24d9b86dfa54
equal deleted inserted replaced
8899:c7a95ebcc093 8900:010a59e12d89
   245         this is not deleting a file in the svn but deleting entities from the
   245         this is not deleting a file in the svn but deleting entities from the
   246         source. Main usage is to delete repository content when a Repository
   246         source. Main usage is to delete repository content when a Repository
   247         entity is deleted.
   247         entity is deleted.
   248         """
   248         """
   249         attrs = {'cw_eid': entity.eid}
   249         attrs = {'cw_eid': entity.eid}
   250         sql = self.sqladapter.sqlgen.delete(SQL_PREFIX + entity.__regid__, attrs)
   250         sql = self.sqladapter.sqlgen.delete(SQL_PREFIX + entity.cw_etype, attrs)
   251         self.doexec(session, sql, attrs)
   251         self.doexec(session, sql, attrs)
   252 
   252 
   253     def local_add_relation(self, session, subject, rtype, object):
   253     def local_add_relation(self, session, subject, rtype, object):
   254         """add a relation to the source
   254         """add a relation to the source
   255 
   255