MCPcopy
hub / github.com/pyload/pyload / packages

Function packages

module/web/json_app.py:69–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67@route("/json/packages")
68@login_required('LIST')
69def packages():
70 print "/json/packages"
71 try:
72 data = PYLOAD.getQueue()
73
74 for package in data:
75 package['links'] = []
76 for file in PYLOAD.get_package_files(package['id']):
77 package['links'].append(PYLOAD.get_file_info(file))
78
79 return data
80
81 except:
82 return HTTPError()
83
84
85@route("/json/package/<id:int>")

Callers

nothing calls this directly

Calls 3

HTTPErrorClass · 0.90
getQueueMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected