|
|
|
@ -43,6 +43,7 @@ def chkbranch(ref_param = None):
|
|
|
|
|
def index():
|
|
|
|
|
oldref = chkbranch(ref_param = request.args.get('ref'))
|
|
|
|
|
docsdir = os.path.join(repo_path, 'docs')
|
|
|
|
|
# TODO: is this in the right place? it used to be after the subprocess call.
|
|
|
|
|
oldref.checkout()
|
|
|
|
|
for fname in ('MANUAL', 'README'):
|
|
|
|
|
fpath = os.path.join(docsdir, '{0}.adoc'.format(fname))
|
|
|
|
@ -59,6 +60,7 @@ def index():
|
|
|
|
|
@app.route('/aif.xsd', methods = ['GET'])
|
|
|
|
|
def xsd():
|
|
|
|
|
oldref = chkbranch(ref_param = request.args.get('ref'))
|
|
|
|
|
# TODO: is this in the right place? it used to be after the resp.headers i think.
|
|
|
|
|
oldref.checkout()
|
|
|
|
|
with open(os.path.join(repo_path, 'aif.xsd'), 'r') as fh:
|
|
|
|
|
xsd_raw = fh.read()
|
|
|
|
|