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

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

src/h/u/hue-HEAD/apps/pig/src/pig/views.py   hue(Download)
def dashboard(request):
  pig_api = api.get(request.fs, request.jt, request.user)
 
  jobs = pig_api.get_jobs()
  hue_jobs = Document.objects.available(PigScript, request.user, with_history=True)

src/h/u/hue-HEAD/apps/pig/src/pig/tests.py   hue(Download)
 
from pig.models import create_or_update_script, PigScript
from pig.api import OozieApi, get
 
 
  def test_check_hcatalogs_sharelib(self):
    api = get(None, None, self.user)
    pig_script = self.create_script()
 
    # Regular
  def parse_oozie_logs(self):
    api = get(None, None, self.user)
 
    assert_equal(
'''Run pig script using PigRunner.run() for Pig version 0.8+