當前位置: 首頁>>代碼示例>>Python>>正文


Python dnd_paginator.DndMobilePaginator類代碼示例

本文整理匯總了Python中dndtools.dnd.mobile.dnd_paginator.DndMobilePaginator的典型用法代碼示例。如果您正苦於以下問題:Python DndMobilePaginator類的具體用法?Python DndMobilePaginator怎麽用?Python DndMobilePaginator使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了DndMobilePaginator類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: edition_list_mobile

def edition_list_mobile(request):
    edition_list = DndEdition.objects.all()

    paginator = DndMobilePaginator(edition_list, request)

    return render_to_response(
        "dnd/mobile/rulebooks/edition_list.html",
        {"edition_list": paginator.items(), "paginator": paginator, "request": request},
        context_instance=RequestContext(request),
    )
開發者ID:illiptic,項目名稱:dndtools,代碼行數:10,代碼來源:views.py

示例2: feat_category_list_mobile

def feat_category_list_mobile(request):
    feat_category_list = FeatCategory.objects.all()

    paginator = DndMobilePaginator(feat_category_list, request)

    return render_to_response('dnd/mobile/feats/feat_category_list.html',
                              {
                                  'feat_category_list': paginator.items(),
                                  'paginator': paginator,
                                  'request': request, }, context_instance=RequestContext(request), )
開發者ID:DankilltheShadow,項目名稱:dndtools,代碼行數:10,代碼來源:views.py

示例3: skills_list_by_rulebook_mobile

def skills_list_by_rulebook_mobile(request):
    rulebook_list = Rulebook.objects.select_related('dnd_edition').all()

    paginator = DndMobilePaginator(rulebook_list, request)

    return render_to_response('dnd/mobile/skills/skills_list_by_rulebook.html',
                              {
                                  'request': request,
                                  'rulebook_list': paginator.items(),
                                  'paginator': paginator,
                              }, context_instance=RequestContext(request), )
開發者ID:Jellinek-86,項目名稱:dndtools,代碼行數:11,代碼來源:views.py

示例4: edition_list_mobile

def edition_list_mobile(request):
    edition_list = DndEdition.objects.all()

    paginator = DndMobilePaginator(edition_list, request)

    return render_to_response('dnd/mobile/rulebooks/edition_list.html',
                              {
                                  'edition_list': paginator.items(),
                                  'paginator': paginator,
                                  'request': request,
                              }, context_instance=RequestContext(request), )
開發者ID:Jellinek-86,項目名稱:dndtools,代碼行數:11,代碼來源:views.py

示例5: spell_domain_list_mobile

def spell_domain_list_mobile(request):
    f = SpellDomainFilter(request.GET, queryset=Domain.objects.all())

    paginator = DndMobilePaginator(f.qs, request)

    form_submitted = 1 if '_filter' in request.GET else 0

    return render_to_response('dnd/mobile/spells/spell_domain_list.html',
                              {
                                  'request': request,
                                  'spell_domain_list': paginator.items(),
                                  'paginator': paginator,
                                  'filter': f,
                                  'form_submitted': form_submitted,
                              }, context_instance=RequestContext(request), )
開發者ID:DankilltheShadow,項目名稱:dndtools,代碼行數:15,代碼來源:views.py

示例6: deity_list_mobile

def deity_list_mobile(request):
    f = DeityFilter(request.GET, queryset=Deity.objects.all())

    form_submitted = 1 if '_filter' in request.GET else 0

    paginator = DndMobilePaginator(f.qs, request)

    return render_to_response('dnd/mobile/deities/deity_list.html',
                              {
                                  'request': request,
                                  'deity_list': paginator.items(),
                                  'paginator': paginator,
                                  'filter': f,
                                  'form_submitted': form_submitted,
                              }, context_instance=RequestContext(request), )
開發者ID:DankilltheShadow,項目名稱:dndtools,代碼行數:15,代碼來源:views.py

示例7: language_index_mobile

def language_index_mobile(request):
    f = LanguageFilter(request.GET, queryset=Language.objects.distinct())

    paginator = DndMobilePaginator(f.qs, request)

    form_submitted = 1 if '_filter' in request.GET else 0

    return render_to_response('dnd/mobile/languages/language_index.html',
                              {
                                  'request': request,
                                  'language_list': paginator.items(),
                                  'paginator': paginator,
                                  'filter': f,
                                  'form_submitted': form_submitted,
                              }, context_instance=RequestContext(request), )
開發者ID:DankilltheShadow,項目名稱:dndtools,代碼行數:15,代碼來源:views.py

示例8: skill_list_mobile

def skill_list_mobile(request):
    f = SkillFilter(request.GET, queryset=Skill.objects.all())

    form_submitted = 1 if 'name' in request.GET else 0

    paginator = DndMobilePaginator(f.qs, request)

    return render_to_response('dnd/mobile/skills/skill_list.html',
                              {
                                  'request': request,
                                  'skill_list': paginator.items(),
                                  'paginator': paginator,
                                  'filter': f,
                                  'form_submitted': form_submitted,
                              }, context_instance=RequestContext(request), )
開發者ID:Jellinek-86,項目名稱:dndtools,代碼行數:15,代碼來源:views.py

示例9: race_index_mobile

def race_index_mobile(request):
    f = RaceFilter(request.GET, queryset=Race.objects.select_related(
        'rulebook', 'rulebook__dnd_edition', 'school').distinct())

    paginator = DndMobilePaginator(f.qs, request)

    form_submitted = 1 if 'name' in request.GET else 0

    return render_to_response('dnd/mobile/races/race_index.html',
                              {
                                  'request': request,
                                  'race_list': paginator.items(),
                                  'paginator': paginator,
                                  'filter': f,
                                  'form_submitted': form_submitted,
                              }, context_instance=RequestContext(request), )
開發者ID:Jellinek-86,項目名稱:dndtools,代碼行數:16,代碼來源:views.py

示例10: rulebook_list_mobile

def rulebook_list_mobile(request):
    f = RulebookFilter(request.GET, queryset=Rulebook.objects.select_related(
        'dnd_edition'))

    form_submitted = 1 if 'name' in request.GET else 0

    paginator = DndMobilePaginator(f.qs, request)

    return render_to_response('dnd/mobile/rulebooks/rulebook_list.html',
                              {
                                  'request': request,
                                  'rulebook_list': paginator.items(),
                                  'paginator': paginator,
                                  'filter': f,
                                  'form_submitted': form_submitted,
                              }, context_instance=RequestContext(request), )
開發者ID:Jellinek-86,項目名稱:dndtools,代碼行數:16,代碼來源:views.py

示例11: item_index_mobile

def item_index_mobile(request):
    f = ItemFilter(request.GET, queryset=Item.objects.select_related(
        'rulebook', 'rulebook__dnd_edition', 'body_slot', 'property').distinct())

    paginator = DndMobilePaginator(f.qs, request)

    form_submitted = 1 if 'name' in request.GET else 0

    return render_to_response('dnd/mobile/items/item_index.html',
                              {
                                  'request': request,
                                  'item_list': paginator.items(),
                                  'paginator': paginator,
                                  'filter': f,
                                  'form_submitted': form_submitted,
                              }, context_instance=RequestContext(request), )
開發者ID:Jellinek-86,項目名稱:dndtools,代碼行數:16,代碼來源:views.py

示例12: feat_category_detail_mobile

def feat_category_detail_mobile(request, category_slug):
    feat_category = get_object_or_404(FeatCategory, slug=category_slug)
    feat_list = feat_category.feat_set.select_related('rulebook',
                                                      'rulebook__dnd_edition').all()

    paginator = DndMobilePaginator(feat_list, request)

    return render_to_response('dnd/mobile/feats/feat_category_detail.html',
                              {
                                  'feat_category': feat_category,
                                  'feat_list': paginator.items(),
                                  'paginator': paginator,
                                  'request': request,
                                  'i_like_it_url': request.build_absolute_uri(),
                                  'inaccurate_url': request.build_absolute_uri(), },
                              context_instance=RequestContext(request), )
開發者ID:DankilltheShadow,項目名稱:dndtools,代碼行數:16,代碼來源:views.py

示例13: feat_index_mobile

def feat_index_mobile(request):
    f = FeatFilter(request.GET, queryset=Feat.objects.select_related(
        'rulebook', 'rulebook__dnd_edition').distinct())

    form_submitted = 1 if '_filter' in request.GET else 0

    paginator = DndMobilePaginator(f.qs, request)

    return render_to_response('dnd/mobile/feats/feat_index.html',
                              {
                                  'request': request,
                                  'feat_list': paginator.items(),
                                  'paginator': paginator,
                                  'filter': f,
                                  'form_submitted': form_submitted,
                              }, context_instance=RequestContext(request), )
開發者ID:DankilltheShadow,項目名稱:dndtools,代碼行數:16,代碼來源:views.py

示例14: race_type_index_mobile

def race_type_index_mobile(request):
    f = RaceTypeFilter(request.GET, queryset=RaceType.objects.distinct())

    paginator = DndMobilePaginator(f.qs, request)

    form_submitted = 1 if 'name' in request.GET else 0

    return render_to_response('dnd/mobile/races/race_type_index.html',
                              {
                                  'request': request,
                                  'race_type_list': paginator.items(),
                                  'paginator': paginator,
                                  'filter': f,
                                  'BaseSaveType': RaceType.BaseSaveType, # enums
                                  'BaseAttackType': RaceType.BaseAttackType, # enums
                                  'form_submitted': form_submitted,
                              }, context_instance=RequestContext(request), )
開發者ID:Jellinek-86,項目名稱:dndtools,代碼行數:17,代碼來源:views.py

示例15: spell_school_detail_mobile

def spell_school_detail_mobile(request, spell_school_slug):
    spell_school = get_object_or_404(SpellSchool, slug=spell_school_slug)

    spell_list = spell_school.spell_set.select_related(
        'rulebook', 'rulebook__dnd_edition', 'school').all()

    paginator = DndMobilePaginator(spell_list, request)

    return render_to_response('dnd/mobile/spells/spell_school_detail.html',
                              {
                                  'spell_school': spell_school,
                                  'spell_list': paginator.items(),
                                  'paginator': paginator,
                                  'request': request,
                                  'i_like_it_url': request.build_absolute_uri(),
                                  'inaccurate_url': request.build_absolute_uri(), },
                              context_instance=RequestContext(request), )
開發者ID:DankilltheShadow,項目名稱:dndtools,代碼行數:17,代碼來源:views.py


注:本文中的dndtools.dnd.mobile.dnd_paginator.DndMobilePaginator類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。