<%type('text/plain') result='' if args.key: rxml = asxml(url('/xml/repositories.xml')).data for inst in rxml.institution: for repo in inst.repository: if repo.key == str(args.key): result = str(repo.url) break # %><%=result%>