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

All Samples(10)  |  Call(6)  |  Derive(0)  |  Import(4)

src/t/u/turbulenz_local-1.1.4/turbulenz_local/models/game.py   turbulenz_local(Download)
from turbulenz_local.lib.exceptions import ApiException
from turbulenz_local.lib.validation import ValidationException
from turbulenz_local.models.gamedetails import GameDetail, PathDetail, SlugDetail, ImageDetail, ListDetail, \
                                                   EngineDetail, AspectRatioDetail
from turbulenz_local.models.metrics import MetricsSession
    def _set_slug(self, data):
        old_slug = self.slug
        self.slug = SlugDetail(data.get('slug'))
        if old_slug and not old_slug == self.slug:
            self.game_list.change_slug(old_slug, self.slug)

src/t/u/turbulenz_local-HEAD/turbulenz_local/models/game.py   turbulenz_local(Download)
from turbulenz_local.lib.exceptions import ApiException
from turbulenz_local.lib.validation import ValidationException
from turbulenz_local.models.gamedetails import GameDetail, PathDetail, SlugDetail, ImageDetail, ListDetail, \
                                                   EngineDetail, AspectRatioDetail
from turbulenz_local.models.metrics import MetricsSession
    def _set_slug(self, data):
        old_slug = self.slug
        self.slug = SlugDetail(data.get('slug'))
        if old_slug and not old_slug == self.slug:
            self.game_list.change_slug(old_slug, self.slug)

src/t/u/turbulenz_local-1.1.4/turbulenz_local/models/gamelist.py   turbulenz_local(Download)
from turbulenz_local.models.metrics import MetricsSession
from turbulenz_local.models.game import Game, GameError, GameNotFoundError
from turbulenz_local.models.gamedetails import SlugDetail
from turbulenz_local.lib.deploy import Deployment
 
                if game.slug in self._slugs.keys():
                    new_slug = self.make_slug_unique(game.slug)
                    game.slug = SlugDetail(new_slug)
                self._slugs[game.slug] = game
                LOG.info('game loaded from %s', path)
                del(self._slugs[old_slug])
                if new_slug in self._slugs.keys():
                    new_slug = SlugDetail(self.make_slug_unique(new_slug))
                    game.slug = new_slug
                self._slugs[new_slug] = game

src/t/u/turbulenz_local-HEAD/turbulenz_local/models/gamelist.py   turbulenz_local(Download)
from turbulenz_local.models.metrics import MetricsSession
from turbulenz_local.models.game import Game, GameError, GameNotFoundError
from turbulenz_local.models.gamedetails import SlugDetail
from turbulenz_local.lib.deploy import Deployment
 
                if game.slug in self._slugs.keys():
                    new_slug = self.make_slug_unique(game.slug)
                    game.slug = SlugDetail(new_slug)
                self._slugs[game.slug] = game
                LOG.info('game loaded from %s', path)
                del(self._slugs[old_slug])
                if new_slug in self._slugs.keys():
                    new_slug = SlugDetail(self.make_slug_unique(new_slug))
                    game.slug = new_slug
                self._slugs[new_slug] = game