diff options
Diffstat (limited to 'places.py')
-rw-r--r-- | places.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -22,6 +22,7 @@ from sugar.activity import activity _store = None + class Place(object): def __init__(self, uri=None): self.uri = uri @@ -31,6 +32,7 @@ class Place(object): self.visits = 0 self.last_visit = datetime.now() + class SqliteStore(object): MAX_SEARCH_MATCHES = 20 EXPIRE_DAYS = 30 @@ -131,6 +133,7 @@ class SqliteStore(object): finally: cursor.close() + def get_store(): global _store if _store == None: |