Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(16)  |  Call(16)  |  Derive(0)  |  Import(0)
Return an instance of GameList.
Effectively implement a singleton pattern

src/t/u/turbulenz_local-1.1.4/turbulenz_local/controllers/apiv1/games.py   turbulenz_local(Download)
 
        user = get_current_user()
        game_session_list = GameSessionList.get_instance()
        game_session_id = game_session_list.create_session(user, game)
 
            game_session_id = request.params['gameSessionId']
            user = get_current_user()
            game_session_list = GameSessionList.get_instance()
            session = game_session_list.get_session(game_session_id)
            if session is not None:

src/t/u/turbulenz_local-HEAD/turbulenz_local/controllers/apiv1/games.py   turbulenz_local(Download)
 
        user = get_current_user()
        game_session_list = GameSessionList.get_instance()
        game_session_id = game_session_list.create_session(user, game)
 
            game_session_id = request.params['gameSessionId']
            user = get_current_user()
            game_session_list = GameSessionList.get_instance()
            session = game_session_list.get_session(game_session_id)
            if session is not None:

src/t/u/turbulenz_local-1.1.4/turbulenz_local/controllers/localv1/games.py   turbulenz_local(Download)
    def sessions(cls):
        game_session_list = GameSessionList.get_instance()
        return {'ok': True, 'data': game_session_list.list()}
 

src/t/u/turbulenz_local-1.1.4/turbulenz_local/controllers/apiv1/userdata.py   turbulenz_local(Download)
class UserdataController(BaseController):
    """ UserdataController consists of all the Userdata methods
    """
 
    game_session_list = GameSessionList.get_instance()

src/t/u/turbulenz_local-1.1.4/turbulenz_local/controllers/apiv1/store.py   turbulenz_local(Download)
 
    store_service = ServiceStatus.check_status_decorator('store')
    game_session_list = GameSessionList.get_instance()
 
    @classmethod

src/t/u/turbulenz_local-1.1.4/turbulenz_local/controllers/apiv1/gameprofile.py   turbulenz_local(Download)
class GameprofileController(BaseController):
    """ GameprofileController consists of all the GameProfile methods
    """
 
    game_session_list = GameSessionList.get_instance()

src/t/u/turbulenz_local-1.1.4/turbulenz_local/controllers/apiv1/datashare.py   turbulenz_local(Download)
 
    datashare_service = ServiceStatus.check_status_decorator('datashare')
    game_session_list = GameSessionList.get_instance()
 
    # Testing only - Not available on the Gamesite

src/t/u/turbulenz_local-HEAD/turbulenz_local/controllers/localv1/games.py   turbulenz_local(Download)
    def sessions(cls):
        game_session_list = GameSessionList.get_instance()
        return {'ok': True, 'data': game_session_list.list()}
 

src/t/u/turbulenz_local-HEAD/turbulenz_local/controllers/apiv1/userdata.py   turbulenz_local(Download)
class UserdataController(BaseController):
    """ UserdataController consists of all the Userdata methods
    """
 
    game_session_list = GameSessionList.get_instance()

src/t/u/turbulenz_local-HEAD/turbulenz_local/controllers/apiv1/store.py   turbulenz_local(Download)
 
    store_service = ServiceStatus.check_status_decorator('store')
    game_session_list = GameSessionList.get_instance()
 
    @classmethod

  1 | 2  Next