MCPcopy Index your code
hub / github.com/pyload/pyload / renderBody

Method renderBody

module/cli/AddPackage.py:47–66  ·  view source on GitHub ↗
(self, line)

Source from the content-addressed store, hash-verified

45 self.setInput()
46
47 def renderBody(self, line):
48 println(line, white(_("Add Package:")))
49 println(line + 1, "")
50 line += 2
51
52 if not self.name:
53 println(line, _("Enter a name for the new package"))
54 println(line + 1, "")
55 line += 2
56 else:
57 println(line, _("Package: %s") % self.name)
58 println(line + 1, _("Parse the links you want to add."))
59 println(line + 2, _("Type %s when done.") % mag("END"))
60 println(line + 3, _("Links added: ") + mag(len(self.urls)))
61 line += 4
62
63 println(line, "")
64 println(line + 1, mag("0.") + _(" back to main menu"))
65
66 return line + 2

Callers

nothing calls this directly

Calls 4

printlnFunction · 0.85
whiteFunction · 0.85
magFunction · 0.85
_Function · 0.50

Tested by

no test coverage detected