def _delete(self, trans): """ Deletes the item physically. Bypasses security checks. Returns: None """ db.handle_delete(self, trans, True) db.deleteItem(self, trans) if self.isCollection: lstChildren = self._items.values() + self._subfolders.values() for sID in lstChildren: oChild = db.getItem(sID, trans) oChild._delete(trans)
def removeComposite(composite, trans): db.handle_delete(composite, trans, True) db.deleteItem(composite, trans)