示例#1
0
    def check(self):
        self.log.info('Called check()')
        for repository_path in self.opt_repository:
            self.log.info('check repository: %s' % repository_path)
            self.run_in_thread(self.check_one, repository_path)

        gobject.timeout_add(self.get_daemon_timeout * 1000, self.check)
示例#2
0
    def check(self):
        self.log.info('Called check()')
        for repository_path in self.opt_repository:
            self.log.info('check repository: %s' % repository_path)
            self.run_in_thread(self.check_one, repository_path)

        gobject.timeout_add(self.get_daemon_timeout * 1000, self.check)
示例#3
0
 def run(self):
     self.log.info('create menu')
     self.sys_icon()
     self.log.info('item to loop')
     gobject.timeout_add(10, self.check)
     self.log.info('start loop')
     gtk_.main()
     self.log.info('end run method')
示例#4
0
 def run(self):
     self.log.info('create menu')
     self.sys_icon()
     self.log.info('item to loop')
     gobject.timeout_add(10, self.check)
     self.log.info('start loop')
     gtk_.main()
     self.log.info('end run method')
示例#5
0
import os
import ConfigParser
import sys
from datetime import datetime
import traceback

import notify2

from pull_all import pull_all_branches
import gitParser
from sys_tray import Icon

# import gtk as gtk_
# import gobject
import Gtk as gtk_, GObject as gobject
gobject.threads_init()

dir_ = os.path.dirname(__file__)

from logs import logger as log_

rr = re.compile('\[(?:\w)+/([A-Za-z0-9\._]+): behind (\d+)\]')


def empty_cb(n):
    log_.info('closed notify msg')
    n.close()


class GitPushNotify(object):
    opt_repository = []
示例#6
0
import os
import ConfigParser
import sys
from datetime import datetime
import traceback

import notify2

from pull_all import pull_all_branches
import gitParser
from sys_tray import Icon

# import gtk as gtk_
# import gobject
import Gtk as gtk_, GObject as gobject
gobject.threads_init()

dir_ = os.path.dirname(__file__)

from logs import logger as log_

rr = re.compile('\[(?:\w)+/([A-Za-z0-9\._]+): behind (\d+)\]')


def empty_cb(n):
    log_.info('closed notify msg')
    n.close()


class GitPushNotify(object):
    opt_repository = []