]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - news.py
Change POST to GET
[phdru.name/phdru.name.git] / news.py
diff --git a/news.py b/news.py
index b091cbdda47242bc4077e18a14ea3182c35e6df7..3e0385116228ed6b637c9c918c25066b15d7fde3 100644 (file)
--- a/news.py
+++ b/news.py
@@ -1,10 +1,7 @@
 """News"""
 
-__version__ = "$Revision$"[11:-2]
-__revision__ = "$Id$"[5:-2]
-__date__ = "$Date$"[7:-2]
-__author__ = "Oleg BroytMann <phd@phd.pp.ru>"
-__copyright__ = "Copyright (C) 2006 PhiloSoft Design"
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2006-2012 PhiloSoft Design"
 __docformat__ = "epytext en"
 
 __all__ = ["get_news", "write_if_changed"]
@@ -14,6 +11,7 @@ from datetime import date
 from urlparse import urljoin
 
 class NewsItem(object):
+   baseURL = "http://phdru.name/"
    excerpt = None
    content = None
    categoryList = []
@@ -24,7 +22,7 @@ class NewsItem(object):
       self.rel_link = rel_link
 
    def URL(self):
-      return urljoin("http://phd.pp.ru/", self.rel_link)
+      return urljoin(self.baseURL, self.rel_link)
 
    def rfc822_date(self):
       y, m, d = self.date.split('-')