From: Leandro Lucarella Date: Wed, 6 Aug 2008 15:28:18 +0000 (-0300) Subject: Rename DB to ArticleDB X-Git-Url: https://git.llucax.com/software/blitiri.git/commitdiff_plain/abb8358a1515ae8cec441218d39a8838d538d68d Rename DB to ArticleDB --- 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(),