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

All Samples(9)  |  Call(4)  |  Derive(0)  |  Import(5)

src/m/a/manabi-HEAD/apps/flashcards/views/crud.py   manabi(Download)
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
from flashcards.models import FieldContent, Card
        raise forms.ValidationError('You do not have permission to access this flashcard deck.')
    if request.method == 'POST':
        deck_form = DeckForm(request.POST, instance=deck)
        if deck_form.is_valid():
            deck = deck_form.save()
            return HttpResponse(json_encode({'success':True}), mimetype='text/javascript')
    else:
        deck_form = DeckForm(instance=deck)
    if request.method == 'POST':
 
        deck_form = DeckForm(request.POST)
        if deck_form.is_valid():
            new_deck = deck_form.save(commit=False)
            return HttpResponse(json_encode({'success': False}), mimetype='text/javascript')
    else:
            deck_form = DeckForm()
    return render_to_response('flashcards/deck_form.html', 
        {'form': deck_form,

src/m/a/manabi-HEAD/apps/flashcards/views/api/__init__.py   manabi(Download)
from apps.utils.querycleaner import clean_query
from flashcards.cachenamespaces import fact_grid_namespace
from flashcards.forms import DeckForm, FactForm, FieldContentForm, CardForm
from flashcards.models import (FactType, Fact, Deck, CardTemplate, FieldType,
                               FieldContent, Card)

src/m/a/manabi-HEAD/apps/flashcards/views/rest/__init__.py   manabi(Download)
from flashcards import models
from flashcards.contextprocessors import review_start_context
from flashcards.forms import DeckForm, FactForm, FieldContentForm, CardForm
from flashcards.models import Card
from flashcards.models.constants import MAX_NEW_CARD_ORDINAL

src/m/a/manabi-HEAD/apps/flashcards/views/shortcuts.py   manabi(Download)
from catnap.exceptions import HttpForbiddenException
from django.forms import forms
from django.shortcuts import get_object_or_404
 
from flashcards.forms import DeckForm, FactForm, FieldContentForm, CardForm

src/m/a/manabi-HEAD/apps/popups/views.py   manabi(Download)
from flashcards.contextprocessors import (
    deck_count_context, card_existence_context, fact_add_form_context)
from flashcards.forms import DeckForm, FactForm, FieldContentForm
from flashcards.models import FactType, Fact, Deck, CardTemplate, FieldType
from flashcards.models import FieldContent, Card