Пример #1
0
 def addGame(self, title, system, info_id, site_id):
     game = MyGame()
     game.title = title
     game.system = providers.normalize_system(system)
     if site_id in GAME_PROVIDERS:
         provider = GAME_PROVIDERS[site_id]
         game.set_provider_id(provider, info_id)
         game.insert_in_db()
         self.updateInfo(game.id, site_id, info_id, False)
     raise cherrypy.HTTPRedirect("/#Game_{0}".format(game.id))