Coverage for /home/runner/work/viur-core/viur-core/viur/src/viur/core/render/xml/user.py: 0%
16 statements
« prev ^ index » next coverage.py v7.6.3, created at 2024-10-16 22:16 +0000
« prev ^ index » next coverage.py v7.6.3, created at 2024-10-16 22:16 +0000
1from viur.core.render.xml.default import DefaultRender, serializeXML
4class UserRender(DefaultRender): # Render user-data to xml
5 def login(self, application, skel, failed):
6 return self.edit(application, skel, failed=failed, listname="login")
8 def loginSucceeded(self):
9 return serializeXML(True)
11 def renderList(self, skellist):
12 return super(render, self).renderList(skellist)
14 def renderAddItemSuccess(self, **kwargs):
15 return self.renderNoticeRedir("users_note_registration_complete")
17 def renderLostpw(self, skel, failed=False):
18 return self.renderEdit(skel, failed=failed, listname="lostpassword")
20 def renderLostpwSuccess(self, **kwargs):
21 return self.renderNoticeRedir("users_note_lostpassword_complete")
23 def renderLostpwRequested(self, *args, **kwargs):
24 return self.renderNoticeRedir("users_note_lostpassword_requested")