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

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/d/a/daisyproducer-HEAD/dictionary/views.py   daisyproducer(Download)
 
from daisyproducer.dictionary.brailleTables import writeLocalTables, getTables, write_words_with_wrong_default_translation, translate
from daisyproducer.dictionary.forms import RestrictedWordForm, ConfirmWordForm, ConflictingWordForm, ConfirmDeferredWordForm, PartialGlobalWordForm, LookupGlobalWordForm, GlobalWordBothGradesForm, FilterForm, PaginationForm, FilterWithGradeForm
from daisyproducer.dictionary.models import GlobalWord, LocalWord
from daisyproducer.dictionary.importExport import exportWords
 
    if request.method == 'POST':
        form =  ConfirmDeferredWordForm(request.POST) if deferred else ConfirmWordForm(request.POST)
        if form.is_valid():
            update_word_tables(form, grade, deferred)
             'isLocal': word.isLocal}
 
    form = ConfirmDeferredWordForm(initial=initial) if deferred else ConfirmWordForm(initial=initial)
    return render_to_response('dictionary/confirm_single.html', locals(), 
                              context_instance=RequestContext(request))