Esempio n. 1
0
def construct_slider_site_global_string(kvs):
    if not kvs:
        return ""
    kvs = map(lambda a: a[0], kvs)
    return ",\n" + ",\n".join(
        ["    %s:%s" % (json_print(k), json_print(v)) for (k, v) in kvs])
Esempio n. 2
0
def construct_slider_site_global_string(kvs):
	if not kvs:
		return ""
	kvs = map(lambda a : a[0], kvs)
	return ",\n" + ",\n".join(["    %s:%s" % (json_print(k), json_print(v)) for (k,v) in kvs])