parameters: (id)
return_statement: return res
docstring: Lookup all the data associated with an id.
docstring_summary: Lookup all the data associated with an id.
docstring_tokens: Lookup all the data associated with an id .
function: def id_lookup(id):
      """Lookup all the data associated with an id."""
      if not id_exists(id): return None
      res = { 'id' : id }
  
      id_dir = server_file('data/' + str(id))
      res['dumps'] = [x for x in os.listdir(id_dir) if x.endswith('.dmp')]
      if os.path.exists(id_dir + '/desc'):
          res['desc'] = load_file(id_dir + '/desc')
      else:
          res ['desc'] = ''
      res['key'] = load_file(id_dir + '/key')
      res['date'] = id_date(id)
      if os.path.exists(id_dir + '/version'):
          res['version'] = load_file(id_dir + '/version')
      else:
          res['version'] = ''
      if os.path.exists(id_dir + '/githash'):
          res['githash'] = load_file(id_dir + '/githash')
      else:
          res['githash'] = ''
  
      return res
function_tokens: def id_lookup ( id ) : if not id_exists ( id ) : return None res = { 'id' : id } id_dir = server_file ( 'data/' + str ( id ) ) res [ 'dumps' ] = [ x for x in os . listdir ( id_dir ) if x . endswith ( '.dmp' ) ] if os . path . exists ( id_dir + '/desc' ) : res [ 'desc' ] = load_file ( id_dir + '/desc' ) else : res [ 'desc' ] = '' res [ 'key' ] = load_file ( id_dir + '/key' ) res [ 'date' ] = id_date ( id ) if os . path . exists ( id_dir + '/version' ) : res [ 'version' ] = load_file ( id_dir + '/version' ) else : res [ 'version' ] = '' if os . path . exists ( id_dir + '/githash' ) : res [ 'githash' ] = load_file ( id_dir + '/githash' ) else : res [ 'githash' ] = '' return res