MCPcopy
hub / github.com/pallets/werkzeug / wrap

Function wrap

examples/couchy/views.py:58–61  ·  view source on GitHub ↗
(doc)

Source from the content-addressed store, hash-verified

56@expose("/list/<int:page>")
57def list(request, page):
58 def wrap(doc):
59 data = doc.value
60 data["_id"] = doc.id
61 return URL.wrap(data)
62
63 code = """function(doc) { if (doc.public){ map([doc._id], doc); }}"""
64 docResults = URL.query(code)

Callers 2

test_appFunction · 0.85
listFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_appFunction · 0.68