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/api/__init__.py   manabi(Download)
                               FieldContent, Card)
from flashcards.models.constants import MAX_NEW_CARD_ORDINAL
from flashcards.views.decorators import (flashcard_api as api, api_data_response,
                                         ApiException, has_card_query_filters,
                                         flashcard_api_with_dojo_data as api_dojo_data)
                new_card.save()
        else:
            raise ApiException({
                #'card': card_formset.errors,
                'field_content': field_content_formset.errors,
                            pass
        else:
            raise ApiException({
                'card': card_formset.errors,
                'fact': fact_formset.errors,

src/m/a/manabi-HEAD/apps/jdic/views.py   manabi(Download)
from settings import JDIC_AUDIO_SERVER_URL, JDIC_AUDIO_SERVER_TIMEOUT
from flashcards.views.decorators import flashcard_api as api
from flashcards.views.decorators import ApiException
from django.views.decorators.http import require_POST
import httplib
        return False
    else:
        raise ApiException('Error communicating with JDic audio server.'
                            ' (HTTP {})'.format(res.status))
 

src/m/a/manabi-HEAD/apps/stats/views.py   manabi(Download)
from flashcards.models import CardHistory, Card
from flashcards.models.constants import GRADE_NONE, GRADE_HARD, GRADE_GOOD, GRADE_EASY
from flashcards.views.decorators import ApiException
from flashcards.views.decorators import flashcard_api as api
from flashcards.views.decorators import has_card_query_filters