Exemplo n.º 1
0
 def __init__(self, name, uri, inside_archive, parent_file):
     self._complete_uri = uri
     self._parent_file = parent_file
     if inside_archive == "true":
         uri = self.__get_archive_uri(uri)
         
     OpenFileAction.__init__(self, name, uri, False)
Exemplo n.º 2
0
    def __init__(self, name, uri, inside_archive, parent_file):
        self._complete_uri = uri
        self._parent_file = parent_file
        if inside_archive == "true":
            uri = self.__get_archive_uri(uri)

        OpenFileAction.__init__(self, name, uri, False)
Exemplo n.º 3
0
 def __init__(self, name=None, absname=None, **args):
     deskbar.interfaces.Match.__init__(self,
                                       name=name,
                                       icon=absname,
                                       category="files",
                                       **args)
     self.absname = absname
     self.add_action(OpenFileAction(name, absname))
     self.add_all_actions(get_actions_for_uri(absname))
Exemplo n.º 4
0
 def __init__(self, name, url):
     OpenFileAction.__init__(self, name, url, escape=False)
Exemplo n.º 5
0
 def get_name(self, text=None):
     names = OpenFileAction.get_name (self)
     if hasattr(self, "_parent_file") and self._parent_file != None:
         names["parent"] = self._parent_file
     return names 
Exemplo n.º 6
0
 def get_name(self, text=None):
     names = OpenFileAction.get_name(self)
     if hasattr(self, "_parent_file") and self._parent_file != None:
         names["parent"] = self._parent_file
     return names
Exemplo n.º 7
0
 def __init__(self, name, url):
     OpenFileAction.__init__(self, name, url, escape=False)