Exemplo n.º 1
0
class League(object):
    def __init__(self, platform):
        if platform in ['ESPN']:
            self.platform = 'ESPN'
            self.config = self.config()
            self.dao = EspnDao(self.config)

    def teams(self):
        return

    def team(self, team_name):
        return

    def team(self, team_id):
        return

    def standings(self, division):
        tables = self.dao.standings(division)
        return tables

    def detail_standings(self):
        tables = self.dao.standings_detail()
        return tables

    def free_agents(self):
        tables = self.dao.free_agents()
        return tables

    def settings(self):
        return

    def config(self):
        parser = ConfigParser.RawConfigParser()
        parser.read('../config.ini')
        return parser
Exemplo n.º 2
0
class League(object):

    def __init__(self, platform):
        if platform in ['ESPN']:
            self.platform = 'ESPN'
            self.config = self.config()
            self.dao = EspnDao(self.config)

    def teams(self):
        return

    def team(self, team_name):
        return

    def team(self, team_id):
        return

    def standings(self, division):
        tables = self.dao.standings(division)
        return tables

    def detail_standings(self):
        tables = self.dao.standings_detail()
        return tables

    def free_agents(self):
        tables = self.dao.free_agents()
        return tables

    def settings(self):
        return

    def config(self):
        parser = ConfigParser.RawConfigParser()
        parser.read('../config.ini')
        return parser
Exemplo n.º 3
0
 def __init__(self, platform):
     if platform in ['ESPN']:
         self.platform = 'ESPN'
         self.config = self.config()
         self.dao = EspnDao(self.config)
Exemplo n.º 4
0
 def __init__(self, platform):
     if platform in ['ESPN']:
         self.platform = 'ESPN'
         self.config = self.config()
         self.dao = EspnDao(self.config)