def _delete_object_only(self, doc): # Delete object without removing it from the catalog. portal = self.layer['portal'] patches.apply() portal._delObject(doc.getId()) patches.unapply() transaction.commit()
def unapply(self): patches.unapply() return u"collective.noindexing patches unapplied"
def testTearDown(self): from collective.noindexing import patches patches.unapply()