def SetDefaultVersion(self):
    server = ''
    if len(self.args) == 1:
      appyaml = self._ParseAppInfoFromYaml(self.args[0])
      app_id = appyaml.application
      server = appyaml.server or ''
      version = appyaml.version
    elif len(self.args) == 0:
      if not (self.options.app_id and self.options.version):
        self.parser.error(
            ('Expected a <directory> argument or both --application and '
             '--version flags.'))
    else:
      self._PrintHelpAndExit()


    if self.options.app_id:
      app_id = self.options.app_id
    if self.options.server_id:
      server = self.options.server_id
    if self.options.version:
      version = self.options.version

    version_setter = DefaultVersionSet(self._GetRpcServer(),
                                       app_id,
                                       server,
                                       version)
    version_setter.SetVersion()
Translate the on-screen pixel position to a scene pixel
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/appcfg.py/AppCfgApp.SetDefaultVersion--crossover with--dataset/ETHPy150Open ardekantur/pyglet/contrib/spryte/view.py/View.translate_position