summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-08-13 13:31:36 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-08-13 13:31:36 +0200
commita4bad326bc4032ff257f964df6d86681654c1259 (patch)
tree746c1348825b0e8dff4b4e0ff9435d132e3396d7 /plugins
parent1ff4d3590fe8e788736e9ebf6700bdd6aa3773f3 (diff)
downloadportato-a4bad326bc4032ff257f964df6d86681654c1259.tar.gz
portato-a4bad326bc4032ff257f964df6d86681654c1259.tar.bz2
portato-a4bad326bc4032ff257f964df6d86681654c1259.zip
Make plugins more exception aware and exception safe
Diffstat (limited to '')
-rw-r--r--plugins/package_details.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/package_details.py b/plugins/package_details.py
index 6a17f1e..7d739a3 100644
--- a/plugins/package_details.py
+++ b/plugins/package_details.py
@@ -23,13 +23,20 @@ class Detail (WidgetPlugin):
"""
__author__ = "René 'Necoro' Neumann"
+
_view_ = None
_old_pkg = None
+ _widget_ = None
+ _widget_name_ = None
def init(self):
+ raise Exception, "e"
self.add_call("update_table", self._update, type = "after")
def widget_init (self):
+ if (self._widget_ is None) or (self._widget_name_ is None):
+ raise PluginLoadException, ("Has not set _widget_ or _widget_name_.")
+
self.add_widget("Package Notebook", (self._widget_, self._widget_name_))
# if the detail was updated before it was actually initialized, update it again :)
76c7bf40947f&follow=1'>Update COPYING to reflect man page and project page.1.1.2Jason A. Donenfeld1-10/+11 2012-09-06Use BINDIR, MANDIR and SYSCONFDIR vars in MakefileChristophe Fergeau1-5/+8 2012-09-06Add dependencies to README.Jason A. Donenfeld1-0/+8 2012-09-06Change debian name.Jason A. Donenfeld5-5/+4 2012-09-06Use more normal sleep variant.1.1.1Jason A. Donenfeld1-1/+1 2012-09-06Use --noreport instead of head -n -2 for tree so that it works on mac.Jason A. Donenfeld1-1/+1 2012-09-05Be sure to explicitly state that install is a phony target.Jason A. Donenfeld1-0/+2 2012-09-05Bump debian version horribly.1.1Jason A. Donenfeld2-2/+2 2012-09-04No echo mode.Jason A. Donenfeld2-16/+42 2012-09-04Properly quote the path too.Jason A. Donenfeld1-1/+1 2012-09-04Allow passwords having spaces to go unbroken to the clipboard.Bernardo Freitas Paulo da Costa1-1/+1 2012-09-04Separate out the massive git example.Jason A. Donenfeld1-10/+14 2012-09-04Prepare for debianification.1.0Jason A. Donenfeld9-4/+60 2012-09-03Fix readme typo.Jason A. Donenfeld1-1/+1 2012-09-03Show program name properly in error message.Jason A. Donenfeld1-1/+1 2012-09-03Move examples into manpage.Jason A. Donenfeld4-93/+224 2012-09-03Make into a real project.Jason A. Donenfeld8-5/+173 2012-09-03Support pass gitJason A. Donenfeld2-1/+15 2012-08-31Add remove synonyms.Jason A. Donenfeld1-2/+2 2012-08-31Use basename in usage.Jason A. Donenfeld1-2/+1 2012-08-19now using gpg_id as a varMatthew Ramirez1-2/+2 2012-08-07Forty five seconds.Jason A. Donenfeld1-1/+1 2012-08-06Deal with klipper and new lines.Jason A. Donenfeld1-3/+19 2012-08-06Update examples.Jason A. Donenfeld1-7/+7 2012-08-06Update readme.Jason A. Donenfeld1-11/+13 2012-08-06Be slicker and more like git.Jason A. Donenfeld1-114/+173