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

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

src/m/t/mt-serverland-HEAD/serverland/dashboard/views.py   mt-serverland(Download)
from django.template import RequestContext
from serverland.dashboard.models import TranslationRequest, WorkerServer
from serverland.dashboard.forms import TranslationRequestForm
from serverland.settings import LOG_LEVEL, LOG_HANDLER, DEPLOYMENT_PREFIX, \
  TRANSLATION_MESSAGE_PATH, COMMIT_TAG
 
    if request.method == "POST":
        form = TranslationRequestForm(request.user, request.POST,
          request.FILES)
 
    else:
        try:
            form = TranslationRequestForm(user=request.user)
 
        except AssertionError, msg:

src/m/t/mt-serverland-HEAD/serverland/dashboard/api/handlers.py   mt-serverland(Download)
from piston.utils import rc, throttle
from serverland.dashboard.models import WorkerServer, TranslationRequest
from serverland.dashboard.forms import TranslationRequestForm
from serverland.protobuf.TranslationRequestMessage_pb2 import \
     TranslationRequestMessage
                pass
        # validate POST data using our Django form
        form = TranslationRequestForm(request.user, postdata, request.FILES)
        try:
            if not form.is_valid():