Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/m/a/manabi-HEAD/apps/flashcards/views/crud.py   manabi(Download)
from dojango.decorators import json_response
from dojango.util import to_dojo_data, json_decode, json_encode
from flashcards.contextprocessors import subfact_form_context
from flashcards.forms import DeckForm, FactForm, FieldContentForm
from flashcards.models import FactType, Fact, Deck, CardTemplate, FieldType
 
        # subfact forms
        context.update(subfact_form_context(request))
        context['subfact_forms'] = []
        context['initial_field_content_form_count'] = fact.fieldcontent_set.count() + sum([subfact.fieldcontent_set.count() for subfact in fact.subfacts.all() if subfact.owner == request.user])
        i = 1
        field_content_offset = len(fact.field_contents)
        for subfact in fact.subfacts:
            context['subfact_forms'].append(subfact_form_context(request, subfact=subfact, field_content_offset=field_content_offset, fact_form_ordinal=i)['subfact_form'])

src/m/a/manabi-HEAD/views.py   manabi(Download)
from django.shortcuts import render_to_response, redirect
from django.template import RequestContext
from flashcards.contextprocessors import subfact_form_context
from flashcards.contextprocessors import deck_count_context, card_existence_context
from django.views.decorators.cache import cache_page
        }
 
        context.update(subfact_form_context(request))
 
 

src/m/a/manabi-HEAD/apps/popups/views.py   manabi(Download)
    FieldType, FieldContent, Card,
    GRADE_NONE, GRADE_HARD, GRADE_GOOD, GRADE_EASY)
from flashcards.contextprocessors import subfact_form_context
from flashcards.contextprocessors import (
    deck_count_context, card_existence_context, fact_add_form_context)