from flask import Blueprint, Response

bp = Blueprint('rss', __name__)


@@ -1,8 +1,24 @@
+# coding: utf-8%0A
 from fla
@@ -42,47 +42,1816 @@
 nt, 
-R
+make_r
 esponse
-%0A%0Abp = Blueprint('rss', __name__)%0A
+, abort%0A# from feedgen.feed import FeedGenerator%0Afrom google.appengine.api.app_identity.app_identity import get_application_id%0A%0Afrom .ndbmodels import Change%0Afrom .utility.rss import Feed, FeedItem%0A%0Abp = Blueprint('rss', __name__)%0A%0A@bp.route('/week.xml')%0Adef feed_week():%0A    # TODO: add config option for custom URL to put here%0A    base_url = 'https://%7B0%7D.appspot.com/'.format(get_application_id())%0A    feed = Feed()%0A    # feed.id = base_url + 'feed/week.xml'%0A    feed.title = u'Izmai%C5%86as tuv%C4%81kaj%C4%81 ned%C4%93%C4%BC%C4%81 - Edaemon'%0A    feed.link = base_url%0A%0A    changes = Change.get_week()%0A    for change in changes:%0A        fe = FeedItem()%0A        fe.id = base_url + 'show/' + change.key.urlsafe()%0A        fe.link = fe.id%0A        fe.title = u'Izmai%C5%86as %7B0%7D klasei %7B1%7D'.format(%0A            change.className, change.date)%0A        feed.add_item(fe)%0A%0A    response = make_response(%0A        '%3C?xml version=%221.0%22 encoding=%22UTF-8%22 ?%3E' + feed.render())%0A    response.headers%5B'Content-Type'%5D = 'application/rss+xml; charset=utf-8'%0A    return response%0A%0A@bp.route('/class/%3Cclass_name%3E/week.xml')%0Adef feed_class_week(class_name):%0A    base_url = 'https://%7B0%7D.appspot.com/'.format(get_application_id())%0A    feed = Feed()%0A    feed.title = u'Izmai%C5%86as tuv%C4%81kaj%C4%81 ned%C4%93%C4%BC%C4%81 %7B0%7D klasei - Edaemon'.format(%0A        class_name)%0A    feed.link = base_url + '?class_name=' + class_name%0A%0A    changes = Change.get_week_for_class(class_name)%0A    for change in changes:%0A        fe = FeedItem()%0A        fe.id = base_url + 'show/' + change.key.urlsafe()%0A        fe.link = fe.id%0A        fe.title = u'Izmai%C5%86as %7B0%7D'.format(change.date)%0A        feed.add_item(fe)%0A%0A    response = make_response(%0A        '%3C?xml version=%221.0%22 encoding=%22UTF-8%22 ?%3E' + feed.render())%0A    response.headers%5B'Content-Type'%5D = 'application/rss+xml; charset=utf-8'%0A    return response
 %0A

create early implementation