Esempio n. 1
0
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		bookmark_file = os.path.expanduser(BOOKMARKS_FILE)
		gfile = gio.File(bookmark_file)
		self.monitor = gfile.monitor_file(gio.FILE_MONITOR_NONE, None)
		if self.monitor:
			self.monitor.connect("changed", self._on_bookmarks_changed)
Esempio n. 2
0
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
     bookmark_file = os.path.expanduser(BOOKMARKS_FILE)
     gfile = gio.File(bookmark_file)
     self.monitor = gfile.monitor_file(gio.FILE_MONITOR_NONE, None)
     if self.monitor:
         self.monitor.connect("changed", self._on_bookmarks_changed)
Esempio n. 3
0
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
     try:
         shortcutsFile = open(os.path.expanduser(__kupfer_settings__["shortcuts_source_path"]), 'r')
         try:
             self.shortcuts = json.load(shortcutsFile)["shortcuts"]
         except Exception:
             pretty.print_debug(__name__, "xi")
         shortcutsFile.close()
     except Exception:
         pretty.print_debug(__name__, "xixi")
Esempio n. 4
0
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
     try:
         shortcutsFile = open(os.path.expanduser(__kupfer_settings__["shortcuts_source_path"]), 'r')
         try:
             self.shortcuts = json.load(shortcutsFile)["shortcuts"]
         except Exception:
             pretty.print_debug(__name__, "xi")
         shortcutsFile.close()
     except Exception:
         pretty.print_debug(__name__, "xixi")
    def initialize(self):
        ToplevelGroupingSource.initialize(self)

        eds_cache = _get_calendar_dirs(EDS_CAL_PATH, EDS_CAL_WEB_PATH)
        if eds_cache:
            #path = list(self.get_path())
            self.monitor_token = self.monitor_directories(*eds_cache)

        bus = dbus.SessionBus()
        dbus_signal_connect_weakly(
            bus,
            "objects_modified",
            self._on_events_updated,
            dbus_interface="org.gnome.evolution.dataserver.CalendarView")
Esempio n. 6
0
File: gajim.py Progetto: pbx/kupfer
    def initialize(self):
        ToplevelGroupingSource.initialize(self)
        # listen to d-bus signals for updates
        signals = [
            "ContactAbsence",
            "ContactPresence",
            "ContactStatus",
            "AccountPresence",
            "Roster",
            "RosterInfo",
        ]

        session_bus = dbus.Bus()

        for signal in signals:
            dbus_signal_connect_weakly(session_bus, signal,
                    self._signal_update, dbus_interface=_IFACE_NAME)
Esempio n. 7
0
    def initialize(self):
        ToplevelGroupingSource.initialize(self)
        # listen to d-bus signals for updates
        signals = [
            "ContactAbsence",
            "ContactPresence",
            "ContactStatus",
            "AccountPresence",
            "Roster",
            "RosterInfo",
        ]

        session_bus = dbus.Bus()

        for signal in signals:
            dbus_signal_connect_weakly(session_bus,
                                       signal,
                                       self._signal_update,
                                       dbus_interface=_IFACE_NAME)
Esempio n. 8
0
	def __init__(self, name=_("SSH Hosts")):
		ToplevelGroupingSource.__init__(self, name, "hosts")
		self._version = 2
Esempio n. 9
0
 def __init__(self):
     ToplevelGroupingSource.__init__(self, _('Pidgin Contacts'), "Contacts")
     self._version = 5
     self.all_buddies = {}
Esempio n. 10
0
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
     self.monitor_token = self.monitor_directories(_SITEMANAGER_DIR)
Esempio n. 11
0
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
     TORRENTS_DIR = (os.path.join(base.xdg_config_home, "transmission/torrents"))
     self.monitor_token = self.monitor_directories(TORRENTS_DIR)
Esempio n. 12
0
 def __init__(self, name=_("Clipboard Phrases")):
     ToplevelGroupingSource.__init__(self, name, "phrases")
Esempio n. 13
0
    def initialize(self):
        ToplevelGroupingSource.initialize(self)
        if not os.path.isdir(self._opera_home):
            return

        self.monitor_token = self.monitor_directories(self._opera_home)
Esempio n. 14
0
 def __init__(self, name=_("Vinagre Bookmarks")):
     ToplevelGroupingSource.__init__(self, name, 'hosts')
     self._version = 2
Esempio n. 15
0
	def __init__(self):
		ToplevelGroupingSource.__init__(self, _('Pidgin Contacts'), "Contacts")
		self._version = 5
		self.unpickle_finish()
Esempio n. 16
0
 def __init__(self):
     ToplevelGroupingSource.__init__(self, _("Shortcuts"), "shortcuts")
     self._version = 1
     self.shortcuts = {}
 def __init__(self, name=None):
     ToplevelGroupingSource.__init__(self, name, _("Calendar Events"))
     self._event = []
     self._version = 3
Esempio n. 18
0
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		self.monitor_token = self.monitor_directories(_SITEMANAGER_DIR)
Esempio n. 19
0
	def __init__(self, name=_("Filezilla Sites")):
		ToplevelGroupingSource.__init__(self, name, "hosts")
Esempio n. 20
0
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		abook_dir = support.get_addressbook_dir()
		if not abook_dir or not os.path.isdir(abook_dir):
			return
		self.monitor_token = self.monitor_directories(abook_dir)
Esempio n. 21
0
 def __init__(self):
     ToplevelGroupingSource.__init__(self, _("Shortcuts"), "shortcuts")
     self._version = 1
     self.shortcuts = {}
Esempio n. 22
0
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		self._install_dbus_signal()
		self._buddy_update_timer = scheduler.Timer()
		self._buddy_update_queue = set()
Esempio n. 23
0
 def __init__(self):
     ToplevelGroupingSource.__init__(self, _("CPFs"), "cpfs")
     self._version = 1
Esempio n. 24
0
 def __init__(self, name=_("Remmina Hosts")):
     ToplevelGroupingSource.__init__(self, name, _("Remmina"))
Esempio n. 25
0
	def __init__(self, name=_("Vinagre Bookmarks")):
		ToplevelGroupingSource.__init__(self, name, 'hosts')
		self._version = 2
Esempio n. 26
0
 def __init__(self, name=_("SSH Hosts")):
     ToplevelGroupingSource.__init__(self, name, "hosts")
     self._version = 2
Esempio n. 27
0
 def __init__(self, name=None):
     ToplevelGroupingSource.__init__(self, name, _("GnomeContacts"))
     self._gnomecontacts = []
     self._version = 3
Esempio n. 28
0
 def __init__(self, name=_("TSClient sessions")):
     ToplevelGroupingSource.__init__(self, name, "hosts")
     self._sessions_dir = os.path.expanduser('~/.tsclient')
     self._version = 2
Esempio n. 29
0
 def __init__(self, name=None):
     ToplevelGroupingSource.__init__(self, name, _("Torrents"))
     self._torrent = []
     self._version = 3
Esempio n. 30
0
File: pidgin.py Progetto: pbx/kupfer
 def __init__(self):
     ToplevelGroupingSource.__init__(self, _('Pidgin Contacts'), "Contacts")
     self._version = 5
     self.unpickle_finish()
Esempio n. 31
0
 def __init__(self, name=_("Filezilla Sites")):
     ToplevelGroupingSource.__init__(self, name, "hosts")
Esempio n. 32
0
	def __init__(self, name=_("TSClient sessions")):
		ToplevelGroupingSource.__init__(self, name, "hosts")
		self._sessions_dir = os.path.expanduser('~/.tsclient')
		self._version = 2
Esempio n. 33
0
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
     cfg_dir = __kupfer_settings__["remmina_hosts_folder"]
     self.monitor_token = self.monitor_directories(cfg_dir)
Esempio n. 34
0
    def initialize(self):
        ToplevelGroupingSource.initialize(self)
        if not os.path.isdir(self._claws_addrbook_dir):
            return

        self.monitor_token = self.monitor_directories(self._claws_addrbook_dir)
Esempio n. 35
0
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
     self.monitor_token = self.monitor_directories(self._ssh_home)
Esempio n. 36
0
 def __init__(self):
     ToplevelGroupingSource.__init__(self, _("CreditCards"), "creditcards")
     self._version = 1
Esempio n. 37
0
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
Esempio n. 38
0
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
     __kupfer_settings__.connect("plugin-setting-changed", self._changed)
Esempio n. 39
0
File: pidgin.py Progetto: pbx/kupfer
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
     self._install_dbus_signal()
     self._buddy_update_timer = scheduler.Timer()
     self._buddy_update_queue = set()
 def __init__(self):
     ToplevelGroupingSource.__init__(self, _("CreditCards"), "creditcards")
     self._version = 1
Esempio n. 41
0
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
Esempio n. 42
0
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		if not os.path.isdir(self._opera_home):
			return

		self.monitor_token = self.monitor_directories(self._opera_home)
Esempio n. 43
0
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		self.monitor_token = self.monitor_directories(self._ssh_home)
Esempio n. 44
0
	def __init__(self, name=_("Thunderbird Address Book")):
		ToplevelGroupingSource.__init__(self, name, "Contacts")
		self._version = 2
Esempio n. 45
0
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		abook_dirs = list(support.get_addressbook_dirs())
		if abook_dirs:
			self.monitor_token = self.monitor_directories(*abook_dirs)
Esempio n. 46
0
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		if not os.path.isdir(self._claws_addrbook_dir):
			return

		self.monitor_token = self.monitor_directories(self._claws_addrbook_dir)
Esempio n. 47
0
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		__kupfer_settings__.connect("plugin-setting-changed", self._changed)
Esempio n. 48
0
 def __init__(self):
     ToplevelGroupingSource.__init__(self, _('Pidgin Contacts'), "Contacts")
     self._version = 5
     self.all_buddies = {}