示例#1
0
 def index_context():
     breadcrumbs = current_breadcrumbs + collection.breadcrumbs(ln=g.ln)[1:]
     return dict(of=request.values.get('of',
                                       collection.formatoptions[0]['code']),
                 format_record=format_record,
                 easy_search_form=EasySearchForm(csrf_enabled=False),
                 breadcrumbs=breadcrumbs)
示例#2
0
文件: views.py 项目: cjhak/b2share
 def index_context():
     return dict(
         of=request.values.get('of', collection.formatoptions[0]['code']),
         easy_search_form=EasySearchForm(csrf_enabled=False),
         format_record=format_record,
     )
示例#3
0
 def add_searchform():
     return {
         'easy_search_form': EasySearchForm(csrf_enabled=False),
         'searchbar_enable': True,
         'collection': Collection.query.get_or_404(1)
     }