parameters: (self)
return_statement: return repository
docstring: Read repository information from application.ini and platform.ini.
docstring_summary: Read repository information from application.ini and platform.ini.
docstring_tokens: Read repository information from application . ini and platform . ini .
function: def get_repositoryInfo(self):
          """Read repository information from application.ini and platform.ini."""
          import ConfigParser
  
          config = ConfigParser.RawConfigParser()
          dirname = os.path.dirname(self.binary)
          repository = { }
  
          for entry in [['application', 'App'], ['platform', 'Build']]:
              (file, section) = entry
              config.read(os.path.join(dirname, '%s.ini' % file))
  
              for entry in [['SourceRepository', 'repository'], ['SourceStamp', 'changeset']]:
                  (key, id) = entry
  
                  try:
                      repository['%s_%s' % (file, id)] = config.get(section, key);
                  except:
                      repository['%s_%s' % (file, id)] = None
  
          return repository
function_tokens: def get_repositoryInfo ( self ) : import ConfigParser config = ConfigParser . RawConfigParser ( ) dirname = os . path . dirname ( self . binary ) repository = { } for entry in [ [ 'application' , 'App' ] , [ 'platform' , 'Build' ] ] : ( file , section ) = entry config . read ( os . path . join ( dirname , '%s.ini' % file ) ) for entry in [ [ 'SourceRepository' , 'repository' ] , [ 'SourceStamp' , 'changeset' ] ] : ( key , id ) = entry try : repository [ '%s_%s' % ( file , id ) ] = config . get ( section , key ) except : repository [ '%s_%s' % ( file , id ) ] = None return repository