]> git.llucax.com Git - software/blitiri.git/commitdiff
Rename DB to ArticleDB
authorLeandro Lucarella <luca@llucax.com.ar>
Wed, 6 Aug 2008 15:28:18 +0000 (12:28 -0300)
committerAlberto Bertogli <albertito@blitiri.com.ar>
Fri, 8 Aug 2008 22:53:20 +0000 (19:53 -0300)
blitiri.cgi

index 4552ed1a3cd87df7daf56128fd6f81c529e0dae6..99ea7a7bef44d316b8eac118511a1f1e987ecff1 100755 (executable)
@@ -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(),