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

Method GET

openlibrary/plugins/openlibrary/code.py:353–364  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

351
352class clonebook(delegate.page):
353 def GET(self):
354 from infogami.core.code import edit # noqa: F401 side effects may be needed
355
356 i = web.input("key")
357 page = web.ctx.site.get(i.key)
358 if page is None:
359 raise web.seeother(i.key)
360 else:
361 d = page._getdata()
362 for k in ["isbn_10", "isbn_13", "lccn", "oclc"]:
363 d.pop(k, None)
364 return render.edit(page, "/addbook", "Clone Book")
365
366
367class robotstxt(delegate.page):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected