MCPcopy Create free account
hub / github.com/internetarchive/openlibrary / GET

Method GET

openlibrary/plugins/admin/code.py:658–662  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

656
657class permissions:
658 def GET(self):
659 perm_pages = self.get_permission("/")
660 # assuming that the permission of books and authors is same as works
661 perm_records = self.get_permission("/works")
662 return render_template("admin/permissions", perm_records, perm_pages)
663
664 def get_permission(self, key):
665 doc = web.ctx.site.get(key)

Callers 1

POSTMethod · 0.95

Calls 2

get_permissionMethod · 0.95
render_templateFunction · 0.70

Tested by

no test coverage detected