d = self.POST("/report_incident", details="eek")
def _done(res):
self.failIfIn("<html>", res)
- self.failUnlessIn("Thank you for your report!", res)
+ self.failUnlessIn("An incident report has been saved", res)
d.addCallback(_done)
return d
details=get_arg(req, "details", ""),
level=log.WEIRD, umid="LkD9Pw")
req.setHeader("content-type", "text/plain")
- return "Thank you for your report!"
+ return "An incident report has been saved to logs/incidents/ in the node directory."
SPACE = u"\u00A0"*2
T.input(type="hidden", name="t", value="report-incident"),
"What went wrong?"+SPACE,
T.input(type="text", name="details"), SPACE,
- T.input(type="submit", value=u"Report \u00BB"),
+ T.input(type="submit", value=u"Save \u00BB"),
]]
return T.div[form]
<hr/>
<div class="nav-header">
<ul class="nav nav-list">
- <li class="nav-header">Report an Incident</li>
+ <li class="nav-header">Save incident report</li>
<li><div n:render="incident_button" /></li>
</ul>
</div>