Commits

voluntas  committed 46bab80

Fix

  • Participants
  • Parent commits cec6167
  • Branches tutorial-beginner

Comments (0)

Files changed (1)

 from models import Account, Status
 from forms import AccountForm, StatusForm
 
-"""
-TODO
-====
-
-"""
-
 def get_account_from_user(user):
   return Account.all().filter('user =', user).get()
 
 
 class UserTimelineHandler(webapp.RequestHandler):
   """
-  {{ oneself.account_name }}
+  {% if oneself %}
+    {{ oneself.account_name }}
+    {{ logout }}
+  {% else %}
+    {{ login }}
+  {% endif %}
   {% for status in user_timeline %}
     {{ status.text }}
     {{ status.creatd }}