Пример #1
0
 def getTeamsTpids(self, year, skip=0):
     """
     Calling this function once establishes all of the Team objects in the Datastore.
     It does this by calling up USFIRST to search for Tpids. We have to do this in
     waves to avoid going over the GAE timeout.
     """
     # FIXME: This is not proper Datafeed form. -gregmarra 2012 Aug 26
     # TeamTpidHelper actually creates Team objects.
     TeamTpidHelper.scrapeTpids(skip, year)
 def getTeamsTpids(self, year, skip=0):
     """
     Calling this function once establishes all of the Team objects in the Datastore.
     It does this by calling up USFIRST to search for Tpids. We have to do this in
     waves to avoid going over the GAE timeout.
     """
     # FIXME: This is not proper Datafeed form. -gregmarra 2012 Aug 26
     # TeamTpidHelper actually creates Team objects.
     TeamTpidHelper.scrapeTpids(skip, year)
 def instantiateTeams(self, skip=0, year=2011):
     """
     Calling this function once establishes all of the Team objects in the Datastore.
     It does this by calling up USFIRST to search for Tpids. We have to do this in
     waves to avoid going over the GAE timeout.
     """
     
     #TeamTpidHelper actually creates Team objects.
     TeamTpidHelper.scrapeTpid(self.IMPOSSIBLY_HIGH_TEAM_NUMBER, skip, year)