Exemple #1
0
class ScoreWall(Wall):
	userListScore = []

	def __init__(self, canvas, jenkins_url, score_view, dbname):
		Wall.__init__(self, canvas, jenkins_url)

		self.funnycats = FunnyCats(self.jenkins, score_view, dbname)
		self.funnycats.init()
		self.users_score = None

	def update_info(self):
		try:
			if self.funnycats.is_connected() is False:
				raise Exception
			self.funnycats.update_view_score()
			self.users_score = get_user_list_score()
		except Exception, e:
			logging.error(e)
			self.error()
Exemple #2
0
class ScoreWall(Wall):
    userListScore = []

    def __init__(self, canvas, jenkins_url, score_view, dbname):
        Wall.__init__(self, canvas, jenkins_url)

        self.funnycats = FunnyCats(self.jenkins, score_view, dbname)
        self.funnycats.init()
        self.users_score = None

    def update_info(self):
        try:
            if self.funnycats.is_connected() is False:
                raise Exception
            self.funnycats.update_view_score()
            self.users_score = get_user_list_score()
        except Exception, e:
            logging.error(e)
            self.error()
Exemple #3
0
class FunnyCatsWall(Wall):
    userListScore = []

    def __init__(self, canvas, jenkins, score_view, dbname):
        Wall.__init__(self, canvas, jenkins)

        self.funnycats = FunnyCats(self.jenkins, score_view, dbname)
        self.funnycats.init()
        self.users_score = None

    def update_info(self):
        try:
            if self.funnycats.is_connected() is False:
                return False
            self.funnycats.update_score_view()
            self.users_score = get_user_list_score()
            return True
        except Exception, e:
            logging.error(e)
            return False
Exemple #4
0
class FunnyCatsWall(Wall):
	userListScore = []

	def __init__(self, canvas, jenkins, score_view, dbname):
		Wall.__init__(self, canvas, jenkins)

		self.funnycats = FunnyCats(self.jenkins, score_view, dbname)
		self.funnycats.init()
		self.users_score = None

	def update_info(self):
		try:
			if self.funnycats.is_connected() is False:
				return False
			self.funnycats.update_score_view()
			self.users_score = get_user_list_score()
			return True
		except Exception, e:
			logging.error(e)
			return False