예제 #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')