from SitePage import SitePage import api class index(SitePage): def awake(self, trans): super(index, self).awake(trans) self.sendRedirectAndEnd(self.username + '/lists') return username = self.session().value('username', None) if username is not None: self.sendRedirectAndEnd("%s/lists" % username) def writeContent(self): self.write("""