def GET(self, ageid, version): if not version in config.acceptable_game_versions: raise web.notfound() try: intid = int(ageid) intid = ageid except: intid = agedb.ageFromName(ageid) return agedb.listFiles(gamever=version, age=intid)
def GET(self, ageid, tag): try: intid = int(ageid) intid = ageid except: intid = agedb.ageFromName(ageid) if tag == 'verified': return agedb.listLatestFiles(status='VERIFIED', age=intid) else: return agedb.listLatestFiles(age=intid)
def GET(self, ageid, version, tag): if not version in config.acceptable_game_versions: raise web.notfound() try: intid = int(ageid) intid = ageid except: intid = agedb.ageFromName(ageid) if tag == 'verified': return agedb.latestFile(status='VERIFIED', gamever=version, age=intid) else: return agedb.latestFile(gamever=version, age=intid)