From abb8358a1515ae8cec441218d39a8838d538d68d Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Wed, 6 Aug 2008 12:28:18 -0300 Subject: [PATCH] Rename DB to ArticleDB --- blitiri.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(), -- 2.43.0