Did I find the right examples for you? yes no

All Samples(10)  |  Call(5)  |  Derive(0)  |  Import(5)

src/h/a/habitat-HEAD/habitat/views/listener_telemetry.py   habitat(Download)
from couch_named_python import version
from strict_rfc3339 import rfc3339_to_timestamp
from .utils import must_be_admin, validate_doc
from .utils import read_json_schema, only_validates
 
    if not schema:
        schema = read_json_schema("listener_telemetry.json")
    validate_doc(new, schema)
 
@version(1)

src/h/a/habitat-HEAD/habitat/views/listener_information.py   habitat(Download)
from couch_named_python import version
from strict_rfc3339 import rfc3339_to_timestamp
from .utils import must_be_admin, validate_doc
from .utils import read_json_schema, only_validates
 
    if not schema:
        schema = read_json_schema("listener_information.json")
    validate_doc(new, schema)
 
@version(1)

src/h/a/habitat-HEAD/habitat/views/flight.py   habitat(Download)
from couch_named_python import ForbiddenError, UnauthorizedError, version
from strict_rfc3339 import rfc3339_to_timestamp
from .utils import validate_doc, read_json_schema
from .utils import only_validates
 
    if not schema:
        schema = read_json_schema("flight.json")
    validate_doc(new, schema)
 
    if '_admin' in userctx['roles']:

src/h/a/habitat-HEAD/habitat/views/payload_configuration.py   habitat(Download)
from couch_named_python import ForbiddenError, version
from strict_rfc3339 import rfc3339_to_timestamp
from .utils import read_json_schema, validate_doc, must_be_admin
from .utils import only_validates
 
    if not schema:
        schema = read_json_schema("payload_configuration.json")
    validate_doc(new, schema)
 
    if 'sentences' in new:

src/h/a/habitat-HEAD/habitat/views/payload_telemetry.py   habitat(Download)
from strict_rfc3339 import rfc3339_to_timestamp, now_to_rfc3339_utcoffset
from strict_rfc3339 import timestamp_to_rfc3339_utcoffset
from .utils import validate_doc, read_json_schema
from .utils import only_validates
 
    if not schema:
        schema = read_json_schema("payload_telemetry.json")
    validate_doc(new, schema)
 
    if '_admin' in userctx['roles']: