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

All Samples(8)  |  Call(6)  |  Derive(0)  |  Import(2)

src/m/o/mozsvc-0.7/mozsvc/tests/test_metrics.py   mozsvc(Download)
    from mozsvc.metrics import load_metlog_client
    from mozsvc.metrics import send_mozsvc_data
    from mozsvc.metrics import update_mozsvc_data
except ImportError:
    metlog = False
        def some_method(request):
            update_mozsvc_data({'foo': 'bar'})
 
        req = Request({'PATH_INFO': '/foo/bar',
                       'SERVER_NAME': 'somehost.com',
def get_info_mozsvc_data(request):
    update_mozsvc_data({'moe': 'curly'})
    return 'foo'
 
decorate_all = MetricsService(name='users', path='/{username}/all',
def auto_decorate(request):
    update_mozsvc_data({'baz': 'bawlp'})
    return 'foo'
 
 

src/m/o/mozservices-HEAD/mozsvc/tests/test_metrics.py   mozservices(Download)
    from mozsvc.metrics import load_metlog_client
    from mozsvc.metrics import send_mozsvc_data
    from mozsvc.metrics import update_mozsvc_data
except ImportError:
    metlog = False
        def some_method(request):
            update_mozsvc_data({'foo': 'bar'})
 
        req = Request({'PATH_INFO': '/foo/bar',
                       'SERVER_NAME': 'somehost.com',
def get_info_mozsvc_data(request):
    update_mozsvc_data({'moe': 'curly'})
    return 'foo'
 
decorate_all = MetricsService(name='users', path='/{username}/all',
def auto_decorate(request):
    update_mozsvc_data({'baz': 'bawlp'})
    return 'foo'