diff --git a/ChangeLog b/ChangeLog index fb26396f5..a7c281e50 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-01-17 Don Allingham + * src/DataViews/_PersonView.py: optimizations + * src/ViewManager.py: optimizations + * src/gramps_main.py: optimizations + * src/PageView.py: optimizations + 2007-01-17 Brian Matherly * src/ReportBase/_ReportDialog.py: 0000832: Please enable cm/inch toggle in custom size for relationship graph diff --git a/src/DataViews/_PersonView.py b/src/DataViews/_PersonView.py index bcf9bc7e6..7f240e4c2 100644 --- a/src/DataViews/_PersonView.py +++ b/src/DataViews/_PersonView.py @@ -426,11 +426,11 @@ class PersonView(PageView.PersonNavView): # import hotshot, hotshot.stats -# pr = hotshot.Profile('mystats.profile') -# print "Start" -# pr.runcall(self.build_tree) -# print "Finished" -# pr.close() +# pr = hotshot.Profile('mystats.profile') +# print "Start" +# pr.runcall(self.build_tree) +# print "Finished" +# pr.close() # print "Loading profile" # stats = hotshot.stats.load('mystats.profile') # print "done" diff --git a/src/PageView.py b/src/PageView.py index 638b79372..0f2993ba5 100644 --- a/src/PageView.py +++ b/src/PageView.py @@ -721,14 +721,13 @@ class ListView(BookMarkView): for sig in self.signal_map: db.connect(sig, self.signal_map[sig]) - if Config.get(Config.FILTER): - search = EMPTY_SEARCH - else: - search = self.search_bar.get_value() - - self.model = self.make_model(self.dbstate.db, 0, search=search) - - self.list.set_model(self.model) +# if Config.get(Config.FILTER): +# search = EMPTY_SEARCH +# else: +# search = self.search_bar.get_value() +# self.model = self.make_model(self.dbstate.db, 0, search=search) +# self.list.set_model(self.model) + self.build_columns() self.bookmarks.update_bookmarks(self.get_bookmarks()) if self.active: diff --git a/src/ViewManager.py b/src/ViewManager.py index 124a4f9f5..73d5c1239 100644 --- a/src/ViewManager.py +++ b/src/ViewManager.py @@ -935,7 +935,6 @@ class ViewManager: self.state.db.enable_signals() self.state.signal_change() -# self.state.db.request_rebuild() Config.set(Config.RECENT_FILE,filename) diff --git a/src/gramps_main.py b/src/gramps_main.py index 60e89efb0..8dfb135e9 100644 --- a/src/gramps_main.py +++ b/src/gramps_main.py @@ -233,13 +233,12 @@ class Gramps: ah.handle_args() self.vm.post_init_interface() - state.db.request_rebuild() - state.change_active_person(state.db.get_default_person()) +# state.db.request_rebuild() +# state.change_active_person(state.db.get_default_person()) if Config.get(Config.USE_TIPS): TipOfDay.TipOfDay(self.vm.uistate) - def welcome(self): return # if not Config.get(Config.BETAWARN):