(doc)
| 56 | @expose("/list/<int:page>") |
| 57 | def 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) |