Did I find the right examples for you? yes no

All Samples(42)  |  Call(40)  |  Derive(0)  |  Import(2)

        def format(jsonCompatibleValue, readable=True):
    L = list(formatValue(jsonCompatibleValue, readable=readable))
    return "".join(L)
        


src/w/h/whiff-1.1/whiff/middleware/ofc/OpenFlashChart.py   whiff(Download)
        open_flash_chart_swf = whiffenv.absPath(env, "whiff_middleware/ofc/open-flash-chart.swf")
        # get the data as a json dictionary formatted in a json string
        jsonData = jsonParse.format(page, readable=False)
        data = jsonParse.format(jsonData)
        target_div_id = gateway.getResource(env, ["freshName", "OFCdiv"])

src/w/h/whiff-1.1/whiff/middleware/treeView.py   whiff(Download)
        allnodes = expanded.keys()
        allnodes.sort()
        nodesJson = jsonParse.format(allnodes, readable=False)
        L = self.Present(rootNode, ids, info, env, focusNode, callback, nodesJson, rootId)
        prefix = suffix = ""
        #</div>""" % info.body(node)
        if children:
            D["rootId"] = jsonParse.format(rootId)
            D["callback"] = callback
            D["target"] = jsonParse.format(target)
            D["nodes"] = nodesJson
            if allChildrenVisible:
                flagchar = getInfo(env, info, EXPANDED) #info.get(EXPANDED, "-")
                addNode = '""'
                delNode = jsonParse.format(node)
            else:
                flagchar = getInfo(env, info, CLOSED) #info.get(CLOSED, "+")
                addNode = jsonParse.format(node)
                delNode = '""'
            D["flagchar"] = flagchar

src/w/h/whiff-1.1/whiff/resources/GAESession.py   whiff(Download)
def storeJson(prefix, name, value):
    json = jsonParse.format(value, False)
    return storeText(prefix, name, json)
 
def getText(prefix, name, default=None):

src/w/h/whiff-1.1/whiff/middleware/png/pieChart.py   whiff(Download)
def test():
    import urllib
    from whiff.rdjson.jsonParse import format
    labelsAndData = [
        ("december", 30),
    radius = 150
    D = {}
    D["labelsAndData"] = format(labelsAndData)
    D["radius"] = format(radius)
    D["labelColor"] = format((0,0,0))

src/w/h/whiff-1.1/whiff/middleware/png/barChart.py   whiff(Download)
def test():
    import urllib
    from whiff.rdjson.jsonParse import format
    labelsAndData = [
        ("december", 30),
    axisDelta = 10
    D = {}
    D["labelsAndData"] = format(labelsAndData)
    D["axisDelta"] = format(axisDelta)
    D["barColor"] = format((0,0,0))

src/w/h/whiff-1.1/whiff/middleware/loadList.py   whiff(Download)
        D["id"] = identifier
        start_response("200 OK", [('Content-Type', 'application/javascript')])
        yield jsonParse.format(D)
 
class defaultEnvelope(misc.utility):
        if not reentryUrl:
            raise ValueError, "cannot implement previous/next functionality without reentryUrl"
        start = jsonParse.format(start)
        size = jsonParse.format(size)
        firstIndex = jsonParse.format(firstIndex)
        if not action:
            action = "null"
        qvalue = jsonParse.format(value)
        f = '{"id": "%s", "v": %s, "u": "%s", "d": "%s", "r":"%s", "l": "%s", "action": %s %s}\n' % (
            identifier, qvalue, up, down, right, left, action, disableOption)

src/w/h/whiff-1.1/whiff/middleware/EvalPageFunction.py   whiff(Download)
        if self.asynchronous:
            asynchronous = self.param_json(self.asynchronous, env)
        D["ASYNCHRONOUS"] = jsonParse.format(asynchronous)
        if cgi_pairs:
            D["CGI_PAIRS"] = cgi_pairs # jsonParse.format(cgi_pairs)

src/w/h/whiff-1.1/whiff/middleware/misc.py   whiff(Download)
    def deliver_page(self, string_or_page, env, start_response, default_mime="text/html"):
        pt = type(string_or_page)
        if pt in whiffenv.JSON_TYPES:
            string_or_page = jsonParse.format(string_or_page)
            pt = type(string_or_page)
    def deliver_json(self, object_or_page, env, start_response, default_mime="application/javascript"):
        json = self.param_json(object_or_page, env)
        text = jsonParse.format(json)
        return self.deliver_page(text, env, start_response, default_mime)
    def param_text(self, param):

src/w/h/whiff-1.1/whiff/middleware/addCommentsFromResource.py   whiff(Download)
    def storeData(self, resourcePath, data, env):
        fmt = jsonParse.format(data)
        putter = putResource.putResource(value=fmt, path=resourcePath)
        dummy = self.param_value(putter, env)
        return dummy

src/w/h/whiff-1.1/whiff/servers/fsCSI/fsCSIroot/getCompletionInfo2.py   whiff(Download)
def debugDump(cgi, output, filename="/tmp/debug.txt"):
    f = open(filename, "w")
    f.write("cgi\n")
    f.write(jsonParse.format(cgi))
    f.write("\n\noutput\n")
    f.write(jsonParse.format(output))
        start_response("200 OK", [('Content-Type', 'application/javascript')])
        yield "completionsInfo = "
        yield jsonParse.format(filteredValue)
        yield ";\n"
        yield "callBackActive = false;\n"

  1 | 2  Next