Example #1
0
 def get(self):
     user = access.wall(self)
     if user:
         self.redirect('/' + user.user_id())
         self.response.out.write(user.user_id())
         s.w(access.logout_link(),self)
     else:
         pass
Example #2
0
def posts_page(posts, user):    
    ret = "<h2>PrivateBin</h2>"
    ret += "Post here (the url in your address bar) to log, and visit this same page to see posts. "
    ret += "<br/><b>"+ user.nickname() + "</b> " + access.logout_link() + "<br />"
    for post in posts:
        ret = ret + "created: " + str(post.created) + "<br />"
        ret = ret + "post: " + str(post.post) + "<br />"
        ret += "<hr/ >"
    ret += "<div>Please contact <a href = 'http://twitter.com/drewlesueur'>Drew LeSueur</a> for help etc.</div>" 
    ret += "<a href = 'http://github.com/drewlesueur/privatebin'>See source code</a>"   
    return ret