示例#1
0
    def index(self):
        '''
        feeds are to be served as a file
        '''
        entries = ContentFactory().getArchive()
        # feeds need dates in RFC2822
        for entry in entries:
            # all changes to the entry should be here
            entry.date = RFC2822(entry.date)
            entry.url = 'http://pietisticmonk.com/blog/' + entry.url
        # publish date will be the latest post's date.
        pubdate = RFC2822(datetime.date.today().__str__())

        return render(file='templates/rss.xml')
示例#2
0
    def index(self):
        '''
        feeds are to be served as a file
        '''
        entries = ContentFactory().getArchive()
        # feeds need dates in RFC2822
        for entry in entries:
            # all changes to the entry should be here
            entry.date = RFC2822(entry.date)
            entry.url = 'http://pietisticmonk.com/blog/' + entry.url
        # publish date will be the latest post's date.
        pubdate = RFC2822(datetime.date.today().__str__())

        return render(file='templates/rss.xml')
示例#3
0
 def index(self):
     action = "Cache Satus"
     stats = ContentFactory().cacheStatus()
     return render(file='templates/cache.html')
示例#4
0
 def clear(self, key=None):
     '''Clear Cache here'''
     action = str(ContentFactory().cacheClear(key))
     status = ContentFactory().cacheStatus()
     return render(file='templates/cache.html')
示例#5
0
 def index(self):
     entries = ContentFactory().getArchive()
     return render(file='templates/archive.html')
示例#6
0
 def index(self):
     action = "Cache Satus"
     stats = ContentFactory().cacheStatus()
     return render(file = 'templates/cache.html')
示例#7
0
 def clear(self, key=None):
     '''Clear Cache here'''
     action = str(ContentFactory().cacheClear(key))
     status = ContentFactory().cacheStatus()
     return render(file = 'templates/cache.html')
示例#8
0
 def index(self):
     entries = ContentFactory().getArchive()
     return render(file = 'templates/archive.html')
示例#9
0
 def article(self, title=None):
     entry = ContentFactory().getEntry(title)
     return render(file = 'templates/article.html')