Did I find the right examples for you? yes no

All Samples(20)  |  Call(20)  |  Derive(0)  |  Import(0)

src/t/u/tuskar-0.4.1/tuskar/openstack/common/rpc/impl_zmq.py   tuskar(Download)
    """
    try:
        return jsonutils.dumps(data, ensure_ascii=True)
    except TypeError:
        with excutils.save_and_reraise_exception():

src/t/u/tuskar-HEAD/tuskar/openstack/common/rpc/impl_zmq.py   tuskar(Download)
    """
    try:
        return jsonutils.dumps(data, ensure_ascii=True)
    except TypeError:
        with excutils.save_and_reraise_exception():

src/t/u/tuskar-0.4.1/tuskar/openstack/common/policy.py   tuskar(Download)
 
        # Dump a pretty-printed JSON representation
        return jsonutils.dumps(out_rules, indent=4)
 
 
 
        url = ('http:' + self.match) % target
        data = {'target': jsonutils.dumps(target),
                'credentials': jsonutils.dumps(creds)}
        post_data = urllib.urlencode(data)

src/t/u/tuskar-HEAD/tuskar/openstack/common/policy.py   tuskar(Download)
 
        # Dump a pretty-printed JSON representation
        return jsonutils.dumps(out_rules, indent=4)
 
 
 
        url = ('http:' + self.match) % target
        data = {'target': jsonutils.dumps(target),
                'credentials': jsonutils.dumps(creds)}
        post_data = urllib.urlencode(data)

src/t/u/tuskar-0.4.1/tuskar/openstack/common/rpc/common.py   tuskar(Download)
    }
 
    json_data = jsonutils.dumps(data)
 
    return json_data
def serialize_msg(raw_msg):
    # NOTE(russellb) See the docstring for _RPC_ENVELOPE_VERSION for more
    # information about this format.
    msg = {_VERSION_KEY: _RPC_ENVELOPE_VERSION,
           _MESSAGE_KEY: jsonutils.dumps(raw_msg)}

src/t/u/tuskar-HEAD/tuskar/openstack/common/rpc/common.py   tuskar(Download)
    }
 
    json_data = jsonutils.dumps(data)
 
    return json_data
def serialize_msg(raw_msg):
    # NOTE(russellb) See the docstring for _RPC_ENVELOPE_VERSION for more
    # information about this format.
    msg = {_VERSION_KEY: _RPC_ENVELOPE_VERSION,
           _MESSAGE_KEY: jsonutils.dumps(raw_msg)}

src/t/u/tuskar-0.4.1/tuskar/openstack/common/rpc/impl_qpid.py   tuskar(Download)
        addr_opts["link"]["x-declare"].update(link_opts)
 
        self.address = "%s ; %s" % (node_name, jsonutils.dumps(addr_opts))
 
        self.reconnect(session)
            addr_opts["node"]["x-declare"].update(node_opts)
 
        self.address = "%s ; %s" % (node_name, jsonutils.dumps(addr_opts))
 
        self.reconnect(session)

src/t/u/tuskar-HEAD/tuskar/openstack/common/rpc/impl_qpid.py   tuskar(Download)
        addr_opts["link"]["x-declare"].update(link_opts)
 
        self.address = "%s ; %s" % (node_name, jsonutils.dumps(addr_opts))
 
        self.reconnect(session)
            addr_opts["node"]["x-declare"].update(node_opts)
 
        self.address = "%s ; %s" % (node_name, jsonutils.dumps(addr_opts))
 
        self.reconnect(session)

src/t/u/tuskar-0.4.1/tuskar/openstack/common/notifier/log_notifier.py   tuskar(Download)
        'tuskar.openstack.common.notification.%s' %
        message['event_type'])
    getattr(logger, priority)(jsonutils.dumps(message))
 

src/t/u/tuskar-HEAD/tuskar/openstack/common/notifier/log_notifier.py   tuskar(Download)
        'tuskar.openstack.common.notification.%s' %
        message['event_type'])
    getattr(logger, priority)(jsonutils.dumps(message))
 

  1 | 2  Next