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()
Exemplo n.º 2
0
 def unapply(self):
     patches.unapply()
     return u"collective.noindexing patches unapplied"
Exemplo n.º 3
0
 def testTearDown(self):
     from collective.noindexing import patches
     patches.unapply()
Exemplo n.º 4
0
 def testTearDown(self):
     from collective.noindexing import patches
     patches.unapply()
Exemplo n.º 5
0
 def unapply(self):
     patches.unapply()
     return u"collective.noindexing patches unapplied"