Example #1
0
 def get(self):
     bots = bots_to_update()[:1]
     feeds = ""
     for bot in bots:
         logging.debug(bot.name)
         feeds = feeds + bot.feed + "\n"
         post_count = bot.postfeedentry()
     self.response.out.write(feeds + str(post_count))
Example #2
0
 def get(self):
     user = users.get_current_user()
     bots = bots_to_update()
     template_values = {}
     if user:
         template_values = {
             'username': user.nickname(),
             'useremail': user.email(),
             'logout_url': users.create_logout_url("/"),
             'bots' : bots,
             }
     else:
         template_values = {
             'login_url': users.create_login_url("/"),
             'bots' : bots,
             }
     path = template_path("index")
     self.response.out.write(template.render(path, template_values))