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

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

src/h/o/hortonworks-sandbox-HEAD/apps/pig/src/pig/views.py   hortonworks-sandbox(Download)
from pig.models import PigScript, UDF, Job
from pig.templeton import Templeton
from pig.forms import PigScriptForm, UDFForm
from pig.pig_client import PigClient
 
def piggybank(request, obj_id=False):
    if request.method == 'POST':
        form = UDFForm(request.POST, request.FILES)
        if not form.is_valid():
            raise PopupException(_("Error in upload form: %s") % form.errors)