def delete(self, uuid): """Delete this plan.""" handler = (plan_handler.PlanHandler(pecan.request.security_context)) try: handler.delete(uuid) except (db_exc.DBReferenceError, db_exc.DBError): raise exception.PlanStillReferenced(name=uuid)
def delete(self): """Delete this plan.""" p_handler = plan_handler.PlanHandler(pecan.request.security_context) try: p_handler.delete(self._id) except (db_exc.DBError): raise exception.PlanStillReferenced(name=self._id)