nncli

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

commit a7c19ef4d082f560d2a5e162994fbff78da2c130
parent c51c577f12c673d13eb45064158c2525ca26e3e1
Author: Eric Davis <edavis@insanum.com>
Date:   Thu, 26 Jun 2014 21:33:14 -0700

minor code cleanup

Diffstat:
Msncli.py | 12++++--------
1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/sncli.py b/sncli.py @@ -35,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) @@ -630,16 +630,12 @@ def create_color_help_lines(self): [ ('help_descr', '{:>24} '.format(self.config.get_color_descr(c))), ('help_config', '{:>25} '.format(u'clr_' + c)), - (re.search("^(.*)(_fg|_bg)$", c).group(1), u"'" + self.config.get_color(c) + u"'") + (re.search("^(.*)(_fg|_bg)$", c).group(1), + u"'" + self.config.get_color(c) + u"'") ] ), attr_map = None, focus_map = fmap - #focus_map = { - # 'help_value' : 'help_focus', - # 'help_config' : 'help_focus', - # 'help_descr' : 'help_focus' - # } )) return lines