bundled/flask/tests/moduleapp/apps/admin/__init__.py @ 3e5dfa8a94ef
 
Use revset to calculate rev list.
When using obsolescence markers, the rev numbers are not a continuous range.
This patch uses revset expressions to find the LOG_PAGE_LEN previous accessible
revisions and calculate older and newer links.
    
        | author | 
        Christophe de Vienne <cdevienne@gmail.com> | 
    
    
        | date | 
        Mon, 27 Oct 2014 18:42:14 +0100 | 
    
    
        | parents | 
        f33efe14bff1  | 
    
    
        | children | 
        (none) | 
    
from flask import Module, render_template
admin = Module(__name__, url_prefix='/admin')
@admin.route('/')
def index():
    return render_template('admin/index.html')
@admin.route('/index2')
def index2():
    return render_template('./admin/index.html')