git » blitiri » commit abb8358

Rename DB to ArticleDB

author Leandro Lucarella
2008-08-06 15:28:18 UTC
committer Alberto Bertogli
2008-08-08 22:53:20 UTC
parent 89859e45eaaa450710d4201b51ce2efef583c774

Rename DB to ArticleDB

blitiri.cgi +3 -3

diff --git a/blitiri.cgi b/blitiri.cgi
index 4552ed1..99ea7a7 100755
--- a/blitiri.cgi
+++ b/blitiri.cgi
@@ -399,7 +399,7 @@ class Article (object):
 		return ', '.join(l)
 
 
-class DB (object):
+class ArticleDB (object):
 	def __init__(self, dbpath):
 		self.dbpath = dbpath
 		self.articles = []
@@ -599,7 +599,7 @@ def handle_cgi():
 			t = urllib.unquote_plus(t)
 			tags = set((t,))
 
-	db = DB(data_path + '/db')
+	db = ArticleDB(data_path + '/db')
 	if atom:
 		articles = db.get_articles(tags = tags)
 		articles.sort(reverse = True)
@@ -639,7 +639,7 @@ def handle_cmd():
 
 	if not os.path.isfile(data_path + '/db'):
 		open(data_path + '/db', 'w').write('')
-	db = DB(data_path + '/db')
+	db = ArticleDB(data_path + '/db')
 
 	if cmd == 'add':
 		article = Article(art_path, datetime.datetime.now(),