Ejemplo n.º 1
0
    def __init__(self, name=None, is_running=False, open_new=False):
        """
		If @is_running, style as if the app is running (Show application)
		If @open_new, always start a new instance.
		"""
        if not name:
            name = _("Launch")
        Action.__init__(self, name)
        self.is_running = is_running
        self.open_new = open_new
Ejemplo n.º 2
0
	def __init__(self, name=None, is_running=False, open_new=False):
		"""
		If @is_running, style as if the app is running (Show application)
		If @open_new, always start a new instance.
		"""
		if not name:
			name = _("Launch")
		Action.__init__(self, name)
		self.is_running = is_running
		self.open_new = open_new
Ejemplo n.º 3
0
	def __init__(self, desktop_item, is_default=False):
		"""
		Construct an "Open with application" item:

		Application of @name should open, if
		@is_default, it means it is the default app and
		should only be styled "Open"
		"""
		if not desktop_item:
			raise InvalidDataError

		name = desktop_item.get_name()
		action_name = _("Open") if is_default else _("Open with %s") % name
		Action.__init__(self, action_name)
		self.desktop_item = desktop_item
		self.is_default = is_default

		# add a name alias from the package name of the application
		if is_default:
			self.rank_adjust = 5
			self.name_aliases.add(_("Open with %s") % name)
		package_name, ext = os.path.splitext(self.desktop_item.get_id() or "")
		if package_name:
			self.name_aliases.add(_("Open with %s") % package_name)
Ejemplo n.º 4
0
	def __init__(self):
		Action.__init__(self, _("Export Public Key"))
Ejemplo n.º 5
0
Archivo: gtg.py Proyecto: jablan/kupfer
 def __init__(self):
     Action.__init__(self, _("Create Task"))
Ejemplo n.º 6
0
Archivo: gtg.py Proyecto: jablan/kupfer
 def __init__(self):
     Action.__init__(self, _("Mark Done"))
Ejemplo n.º 7
0
	def __init__(self):
		Action.__init__(self, _("Close"))
Ejemplo n.º 8
0
	def __init__(self):
		Action.__init__(self, _("Dismiss"))
Ejemplo n.º 9
0
	def __init__(self):
		Action.__init__(self, _("Decrypt"))
Ejemplo n.º 10
0
	def __init__(self):
		Action.__init__(self, u"Forget")
Ejemplo n.º 11
0
	def __init__(self):
		Action.__init__(self, _("Sign and Encrypt For..."))
Ejemplo n.º 12
0
	def __init__(self):
		Action.__init__(self, _("Verify Signature"))
Ejemplo n.º 13
0
 def __init__(self):
     Action.__init__(self, _("Show shortcut"))
Ejemplo n.º 14
0
 def __init__(self):
     Action.__init__(self, _("Execute shortcuts"))
Ejemplo n.º 15
0
	def __init__(self):
		Action.__init__(self, _("Rescan"))
Ejemplo n.º 16
0
 def __init__(self):
     Action.__init__(self, _("Decrypt"))
Ejemplo n.º 17
0
	def __init__(self):
		Action.__init__(self, _("Encrypt With Symmetric Cipher"))
Ejemplo n.º 18
0
 def __init__(self):
     name = _("Sign By...") if __kupfer_settings__['ask_for_key'] \
       else _("Sign")
     Action.__init__(self, name)
Ejemplo n.º 19
0
	def __init__(self):
		name = _("Sign By...") if __kupfer_settings__['ask_for_key'] \
				else _("Sign")
		Action.__init__(self, name)
Ejemplo n.º 20
0
	def __init__(self):
		Action.__init__(self, u"Debug Info")
Ejemplo n.º 21
0
	def __init__(self):
		Action.__init__(self, _("Encrypt For..."))
Ejemplo n.º 22
0
	def __init__(self):
		Action.__init__(self, _("Delete"))
Ejemplo n.º 23
0
	def __init__(self):
		Action.__init__(self, _("Open Site with Filezilla"))
Ejemplo n.º 24
0
 def __init__(self):
     Action.__init__(self, _("Execute shortcuts"))
Ejemplo n.º 25
0
 def __init__(self, leaf=None, retry=0):
     Action.__init__(self, _("Restart aplication"))
     self.retry = retry
     if leaf != None:
         self.activate(leaf)
Ejemplo n.º 26
0
Archivo: gtg.py Proyecto: jablan/kupfer
 def __init__(self):
     Action.__init__(self, _("Delete"))
Ejemplo n.º 27
0
 def __init__(self, leaf=None, retry = 0):
     Action.__init__(self, _("Restart aplication"))
     self.retry = retry
     if leaf != None:
         self.activate(leaf)
Ejemplo n.º 28
0
Archivo: gtg.py Proyecto: jablan/kupfer
 def __init__(self):
     Action.__init__(self, _("Dismiss"))
Ejemplo n.º 29
0
 def __init__(self):
     Action.__init__(self, _("Sign and Encrypt For..."))
Ejemplo n.º 30
0
 def __init__(self):
     Action.__init__(self, _("Open Site with Filezilla"))
Ejemplo n.º 31
0
	def __init__(self):
		Action.__init__(self, _("Edit Key"))
Ejemplo n.º 32
0
 def __init__(self, name=_("Open")):
     Action.__init__(self, name)
Ejemplo n.º 33
0
 def __init__(self):
     Action.__init__(self, _("Close"))
Ejemplo n.º 34
0
 def __init__(self):
     Action.__init__(self, _("Verify Signature"))
Ejemplo n.º 35
0
 def __init__(self):
     Action.__init__(self, _("Run after Delay..."))
Ejemplo n.º 36
0
 def __init__(self):
     Action.__init__(self, _("Encrypt With Symmetric Cipher"))
Ejemplo n.º 37
0
 def __init__(self):
     Action.__init__(self, _("Run after Delay..."))
Ejemplo n.º 38
0
 def __init__(self):
     Action.__init__(self, _("Encrypt For..."))
Ejemplo n.º 39
0
	def __init__(self):
		Action.__init__(self, _('Get Url to the File'))
		self._dropbox_public = _get_dropbox_subdir('Public')
Ejemplo n.º 40
0
	def __init__(self, action):
		Action.__init__(self, u"Apply To...")
		self.action = action
Ejemplo n.º 41
0
	def __init__(self):
		Action.__init__(self, _('Create Link In Public and Get Url'))
		self._dropbox_public = _get_dropbox_subdir('Public')
Ejemplo n.º 42
0
	def __init__(self):
		Action.__init__(self, _("Add Trigger..."))
Ejemplo n.º 43
0
	def __init__(self):
		Action.__init__(self, _("Remove Trigger"))
Ejemplo n.º 44
0
	def __init__(self):
		Action.__init__(self, _("Open"))
Ejemplo n.º 45
0
 def __init__(self):
     Action.__init__(self, _("Import Public Key"))
Ejemplo n.º 46
0
	def __init__(self):
		Action.__init__(self, _("Mark Done"))
Ejemplo n.º 47
0
 def __init__(self):
     Action.__init__(self, _("Search Key on KeyServer"))
Ejemplo n.º 48
0
	def __init__(self):
		Action.__init__(self, _("Create Task"))
Ejemplo n.º 49
0
Archivo: gtg.py Proyecto: jablan/kupfer
 def __init__(self):
     Action.__init__(self, _("Open"))
Ejemplo n.º 50
0
 def __init__(self):
     Action.__init__(self, _("Show shortcut"))
Ejemplo n.º 51
0
 def __init__(self):
     Action.__init__(self, _("Search Key on KeyServer"))