2007-01-17 Don Allingham <don@gramps-project.org>
* src/DataViews/_PersonView.py: optimizations * src/ViewManager.py: optimizations * src/gramps_main.py: optimizations * src/PageView.py: optimizations svn: r7927
This commit is contained in:
parent
060ae03efd
commit
1d9356620a
@ -1,3 +1,9 @@
|
|||||||
|
2007-01-17 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/DataViews/_PersonView.py: optimizations
|
||||||
|
* src/ViewManager.py: optimizations
|
||||||
|
* src/gramps_main.py: optimizations
|
||||||
|
* src/PageView.py: optimizations
|
||||||
|
|
||||||
2007-01-17 Brian Matherly <brian@gramps-project.org>
|
2007-01-17 Brian Matherly <brian@gramps-project.org>
|
||||||
* src/ReportBase/_ReportDialog.py: 0000832: Please enable cm/inch toggle in
|
* src/ReportBase/_ReportDialog.py: 0000832: Please enable cm/inch toggle in
|
||||||
custom size for relationship graph
|
custom size for relationship graph
|
||||||
|
@ -426,11 +426,11 @@ class PersonView(PageView.PersonNavView):
|
|||||||
|
|
||||||
# import hotshot, hotshot.stats
|
# import hotshot, hotshot.stats
|
||||||
|
|
||||||
# pr = hotshot.Profile('mystats.profile')
|
# pr = hotshot.Profile('mystats.profile')
|
||||||
# print "Start"
|
# print "Start"
|
||||||
# pr.runcall(self.build_tree)
|
# pr.runcall(self.build_tree)
|
||||||
# print "Finished"
|
# print "Finished"
|
||||||
# pr.close()
|
# pr.close()
|
||||||
# print "Loading profile"
|
# print "Loading profile"
|
||||||
# stats = hotshot.stats.load('mystats.profile')
|
# stats = hotshot.stats.load('mystats.profile')
|
||||||
# print "done"
|
# print "done"
|
||||||
|
@ -721,14 +721,13 @@ class ListView(BookMarkView):
|
|||||||
for sig in self.signal_map:
|
for sig in self.signal_map:
|
||||||
db.connect(sig, self.signal_map[sig])
|
db.connect(sig, self.signal_map[sig])
|
||||||
|
|
||||||
if Config.get(Config.FILTER):
|
# if Config.get(Config.FILTER):
|
||||||
search = EMPTY_SEARCH
|
# search = EMPTY_SEARCH
|
||||||
else:
|
# else:
|
||||||
search = self.search_bar.get_value()
|
# search = self.search_bar.get_value()
|
||||||
|
# self.model = self.make_model(self.dbstate.db, 0, search=search)
|
||||||
self.model = self.make_model(self.dbstate.db, 0, search=search)
|
# self.list.set_model(self.model)
|
||||||
|
|
||||||
self.list.set_model(self.model)
|
|
||||||
self.build_columns()
|
self.build_columns()
|
||||||
self.bookmarks.update_bookmarks(self.get_bookmarks())
|
self.bookmarks.update_bookmarks(self.get_bookmarks())
|
||||||
if self.active:
|
if self.active:
|
||||||
|
@ -935,7 +935,6 @@ class ViewManager:
|
|||||||
|
|
||||||
self.state.db.enable_signals()
|
self.state.db.enable_signals()
|
||||||
self.state.signal_change()
|
self.state.signal_change()
|
||||||
# self.state.db.request_rebuild()
|
|
||||||
|
|
||||||
Config.set(Config.RECENT_FILE,filename)
|
Config.set(Config.RECENT_FILE,filename)
|
||||||
|
|
||||||
|
@ -233,13 +233,12 @@ class Gramps:
|
|||||||
ah.handle_args()
|
ah.handle_args()
|
||||||
self.vm.post_init_interface()
|
self.vm.post_init_interface()
|
||||||
|
|
||||||
state.db.request_rebuild()
|
# state.db.request_rebuild()
|
||||||
state.change_active_person(state.db.get_default_person())
|
# state.change_active_person(state.db.get_default_person())
|
||||||
|
|
||||||
if Config.get(Config.USE_TIPS):
|
if Config.get(Config.USE_TIPS):
|
||||||
TipOfDay.TipOfDay(self.vm.uistate)
|
TipOfDay.TipOfDay(self.vm.uistate)
|
||||||
|
|
||||||
|
|
||||||
def welcome(self):
|
def welcome(self):
|
||||||
return
|
return
|
||||||
# if not Config.get(Config.BETAWARN):
|
# if not Config.get(Config.BETAWARN):
|
||||||
|
Loading…
Reference in New Issue
Block a user