~vcs-imports/kupfer/master-new

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""
This is a plugin that should do everything wrong, for debugging Purposes
"""
__kupfer_name__ = u"Evil Plugin"
__kupfer_sources__ = (
	"EvilSource",
	"EvilInstantiationSource",
)
__description__ = u"Evil for debugging purposes (necessary evil)"
__version__ = ""
__author__ = "Ulrik Sverdrup <ulrik.sverdrup@gmail.com>"


from kupfer.objects import Leaf, Action, Source

class EvilError (Exception):
	pass

class EvilInstantiationSource (Source):
	def __init__(self):
		raise EvilError

class EvilSource (Source):
	def __init__(self):
		Source.__init__(self, u"Evil Source")

	def initialize(self):
		raise EvilError

	def get_items(self):
		raise EvilError

	def get_icon_name(self):
		raise EvilError

	def provides(self):
		pass