comparison backend/couchdb/CouchDbBackend.py @ 218:699d8f1cebd4

unify imports, especially Qt imports. Use consistent super syntax
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sun, 27 Apr 2014 06:04:57 +0200
parents bb3c851b18b1
children e34c53a3e407
comparison
equal deleted inserted replaced
217:bb3c851b18b1 218:699d8f1cebd4
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 import couchdb
3 import logging
2 from FeedUpdater import FeedUpdater 4 from FeedUpdater import FeedUpdater
3 from Preferences import Preferences 5 from Preferences import Preferences
4 from backend.AbstractBackend import AbstractBackend 6 from backend.AbstractBackend import AbstractBackend
5 from backend.couchdb import CouchDb 7 from backend.couchdb import CouchDb
6 from backend.couchdb.Feed import Feed 8 from backend.couchdb.Feed import Feed
7 from backend.couchdb.FeedEntry import FeedEntry 9 from backend.couchdb.FeedEntry import FeedEntry
8 import couchdb
9 import logging
10 10
11 class CouchDbBackend(AbstractBackend): 11 class CouchDbBackend(AbstractBackend):
12 ''' 12 '''
13 Backend that uses CouchDB for persistence 13 Backend that uses CouchDB for persistence
14 ''' 14 '''
15 15
16 def __init__(self): 16 def __init__(self):
17 super(CouchDbBackend, self).__init__()
17 CouchDb.init() 18 CouchDb.init()
18 server = self._initServer() 19 server = self._initServer()
19 self.database = server[CouchDb.database] 20 self.database = server[CouchDb.database]
20 self.prefs = None 21 self.prefs = None
21 22