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

All Samples(10)  |  Call(8)  |  Derive(0)  |  Import(2)

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
        self.title = None
        self.path = None
        self.cover_art = ImageDetail(self, 'cover_art.jpg')
        self.title_logo = ImageDetail(self, 'title_logo.jpg')
        self.modified = None
    def _set_images(self, data):
        cover_art = data.get('cover_art', None)
        if cover_art:
            self.cover_art = ImageDetail(self, cover_art)
        title_logo = data.get('title_logo', None)
        if title_logo:
            self.title_logo = ImageDetail(self, title_logo)

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
        self.title = None
        self.path = None
        self.cover_art = ImageDetail(self, 'cover_art.jpg')
        self.title_logo = ImageDetail(self, 'title_logo.jpg')
        self.modified = None
    def _set_images(self, data):
        cover_art = data.get('cover_art', None)
        if cover_art:
            self.cover_art = ImageDetail(self, cover_art)
        title_logo = data.get('title_logo', None)
        if title_logo:
            self.title_logo = ImageDetail(self, title_logo)