nncli

NextCloud Notes Command Line Interface
git clone git://git.danielmoch.com/nncli.git
Log | Files | Refs | LICENSE

commit e99210d449369fec03b36f2ec1eecb06e975d79f
parent 3fc4140a0ea487e17c84dbb3b385ca96af46a207
Author: Eric Davis <edavis@insanum.com>
Date:   Thu, 26 Jun 2014 16:53:55 -0700

minor cleanup

Diffstat:
Mconfig.py | 3---
Mnotes_db.py | 4++--
Msncli.py | 5++---
3 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/config.py b/config.py @@ -77,9 +77,6 @@ def __init__(self): if not cp.has_section(cfg_sec): cp.add_section(cfg_sec) - self.ok = False - else: - self.ok = True self.configs = \ { diff --git a/notes_db.py b/notes_db.py @@ -81,8 +81,8 @@ def __init__(self, config): # initialise the simplenote instance we're going to use # this does not yet need network access - self.simplenote = Simplenote(config.get_config('sn_username'), - config.get_config('sn_password')) + self.simplenote = Simplenote(self.config.get_config('sn_username'), + self.config.get_config('sn_password')) # we'll use this to store which notes are currently being synced by # the background thread, so we don't add them anew if they're still diff --git a/sncli.py b/sncli.py @@ -13,7 +13,6 @@ class sncli: def __init__(self): self.config = Config() - print self.config.get_config('db_path') if not os.path.exists(self.config.get_config('db_path')): os.mkdir(self.config.get_config('db_path')) @@ -36,8 +35,8 @@ def __init__(self): self.last_view = [] # XXX - self.all_notes, match_regex, self.all_notes_cnt = self.ndb.filter_notes() - return + #self.all_notes, match_regex, self.all_notes_cnt = self.ndb.filter_notes() + #return self.ndb.add_observer('synced:note', self.observer_notes_db_synced_note) self.ndb.add_observer('change:note-status', self.observer_notes_db_change_note_status)