def GetDefaultVersion(self): """Return the default version listed in the iOS environment catalog.""" version = (self._default_version if self._default_version else self._FindDefaultDimension(self.catalog.versions)) if not version: raise exceptions.DefaultDimensionNotFoundError(_VERSION_DIMENSION) return version
def GetDefaultModel(self): """Return the default model listed in the iOS environment catalog.""" model = (self._default_model if self._default_model else self._FindDefaultDimension(self.catalog.models)) if not model: raise exceptions.DefaultDimensionNotFoundError(_MODEL_DIMENSION) return model
def GetDefaultLocale(self): """Return the default iOS locale.""" locales = self.catalog.runtimeConfiguration.locales locale = (self._default_locale if self._default_locale else self._FindDefaultDimension(locales)) if not locale: raise exceptions.DefaultDimensionNotFoundError(_LOCALE_DIMENSION) return locale
def GetDefaultOrientation(self): """Return the default orientation in the Android environment catalog.""" orientations = self.catalog.runtimeConfiguration.orientations orientation = (self._default_orientation if self._default_orientation else self._FindDefaultDimension(orientations)) if not orientation: raise exceptions.DefaultDimensionNotFoundError('orientation') return orientation
def GetDefaultLocale(self): """Return the default locale listed in the Android environment catalog.""" locales = self.catalog.runtimeConfiguration.locales locale = (self._default_locale if self._default_locale else self._FindDefaultDimension(locales)) if not locale: raise exceptions.DefaultDimensionNotFoundError('locale') return locale
def GetDefaultOrientation(self): """Return the default iOS orientation.""" orientations = self.catalog.runtimeConfiguration.orientations orientation = (self._default_orientation if self._default_orientation else self._FindDefaultDimension(orientations)) if not orientation: raise exceptions.DefaultDimensionNotFoundError( _ORIENTATION_DIMENSION) return orientation