Esempio n. 1
0
 def update(self, o_team):
     if isinstance(o_team, Team):
         lparam = [o_team.name,
                   o_team.comment,
                   o_team.id]
         rep = AbstractDAO._update(self, R_UPDATE, lparam)
         return rep
Esempio n. 2
0
 def update(self, o_match):
     if isinstance(o_match, Match):
         lparam = [o_match.datetime,
                   o_match.comment,
                   o_match.isplayed,
                   o_match.id]
         rep = AbstractDAO._update(self, R_UPDATE, lparam)
         return rep
Esempio n. 3
0
 def update(self, obj):
     if isinstance(obj, Competition):
         lparam = [
             obj.name, obj.pts_win, obj.pts_null, obj.pts_lose,
             obj.tworound, obj.comment, obj.id
         ]
         rep = AbstractDAO._update(self, R_UPDATE, lparam)
         return rep
Esempio n. 4
0
 def update(self, o_goals):
     """
     Update Goals Object
     :param o_goals: Goals Object
     :return: boolean, result of operation
     """
     if isinstance(o_goals, Goals):
         lparam = [
             o_goals.comment, o_goals.idplayer_ass, o_goals.idplayer_scorer,
             o_goals.id
         ]
         rep = AbstractDAO._update(self, R_UPDATE, lparam)
         return rep