minor update
This commit is contained in:
		
							parent
							
								
									f87671e0a2
								
							
						
					
					
						commit
						f769344ad9
					
				@ -43,6 +43,7 @@ def chkbranch(ref_param = None):
 | 
				
			|||||||
def index():
 | 
					def index():
 | 
				
			||||||
    oldref = chkbranch(ref_param = request.args.get('ref'))
 | 
					    oldref = chkbranch(ref_param = request.args.get('ref'))
 | 
				
			||||||
    docsdir = os.path.join(repo_path, 'docs')
 | 
					    docsdir = os.path.join(repo_path, 'docs')
 | 
				
			||||||
 | 
					    # TODO: is this in the right place? it used to be after the subprocess call.
 | 
				
			||||||
    oldref.checkout()
 | 
					    oldref.checkout()
 | 
				
			||||||
    for fname in ('MANUAL', 'README'):
 | 
					    for fname in ('MANUAL', 'README'):
 | 
				
			||||||
        fpath = os.path.join(docsdir, '{0}.adoc'.format(fname))
 | 
					        fpath = os.path.join(docsdir, '{0}.adoc'.format(fname))
 | 
				
			||||||
@ -59,6 +60,7 @@ def index():
 | 
				
			|||||||
@app.route('/aif.xsd', methods = ['GET'])
 | 
					@app.route('/aif.xsd', methods = ['GET'])
 | 
				
			||||||
def xsd():
 | 
					def xsd():
 | 
				
			||||||
    oldref = chkbranch(ref_param = request.args.get('ref'))
 | 
					    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()
 | 
					    oldref.checkout()
 | 
				
			||||||
    with open(os.path.join(repo_path, 'aif.xsd'), 'r') as fh:
 | 
					    with open(os.path.join(repo_path, 'aif.xsd'), 'r') as fh:
 | 
				
			||||||
        xsd_raw = fh.read()
 | 
					        xsd_raw = fh.read()
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user