From b80d10f56d44a3c9887c8ab3fe4af4220cc049c6 Mon Sep 17 00:00:00 2001 From: Martin Sivak Date: Fri, 8 Aug 2008 13:51:51 +0200 Subject: Print the persistent backup space path at the end --- plugins/plugin_examples/sample1Plugin.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/plugin_examples') diff --git a/plugins/plugin_examples/sample1Plugin.py b/plugins/plugin_examples/sample1Plugin.py index 69107c4..8479ddc 100644 --- a/plugins/plugin_examples/sample1Plugin.py +++ b/plugins/plugin_examples/sample1Plugin.py @@ -32,6 +32,7 @@ class Sample1Plugin(Plugin): def prepare(self): self._result=ReturnSuccess self._issue.set(reporting = self._reporting, origin = self, level = PLUGIN) + self.backup = self._backups.getBackup(self.__class__.__name__+" -- "+self.name, persistent = True) self._reporting.info("Sample1Plugin in Prepare task", origin = self, level = PLUGIN) def backup(self): @@ -54,6 +55,7 @@ class Sample1Plugin(Plugin): def clean(self): self._result=ReturnSuccess + self._backups.closeBackup(self.backup._id) self._reporting.info("Sample1Plugin in Clean task", origin = self, level = PLUGIN) def get_plugin(): -- cgit