def home(self): if Session.valid(self.__handler): name = Session.get_name(self.__handler) return """ <h2>Hello</h2> <div class="center"> <section> <p>Welcome %s</p> </section> </div> """ % name return False
def current_user_path(handler): """ Return the full path to the User folder. :param handler: the self.__handler of the Links object. """ return Users.USER_PATH + Session.get_name(handler) + '/'