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