Пример #1
0
	def __init__(self, handler,result=None, **args):
		Match.__init__ (self, handler,name=result["name"], **args)

		self.result = result
		self.fullpath = result['uri']
		self.init_names()
		
		self.result["base"] = self.base
		self.result["dir"] = self.dir
		
		# Set the match icon
		try:
			self._icon = deskbar.Utils.load_icon(TYPES[result['type']]["icon"])
		except:
			self._icon = deskbar.Utils.load_icon_for_file(result['uri'])
		
		print result
Пример #2
0
 def __init__(self, backend, dir=None, **args):
         Match.__init__(self, backend, **args)
         self.dir = dir
         self.url = dir+"/"+self.name
Пример #3
0
	def __init__(self, backend, qstring, category="files", **args):
		Match.__init__(self, backend, **args)
		self._icon = deskbar.Utils.load_icon("tracker")
		self.qstring = qstring
		self.category = category