* src/Plugins.py (reload_plugins): Check for status.

* src/Report.py: pychecker fixes


svn: r3916
This commit is contained in:
Alex Roitman 2005-01-16 17:50:32 +00:00
parent 347ac96279
commit de38bec406
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2005-01-16 Alex Roitman <shura@alex.neuro.umn.edu>
* src/Plugins.py (reload_plugins): Check for status.
* src/Report.py: pychecker fixes
2005-01-15 Don Allingham <dallingham@users.sourceforge.net>
* src/EditPerson.py: don't use quote date
* src/PeopleModel.py: remove BOLD

View File

@ -707,6 +707,7 @@ def reload_plugins(obj=None,junk1=None,junk2=None,junk3=None):
PluginStatus()
else:
global status_up
if status_up:
status_up.close(None)
status_up = None

View File

@ -1755,7 +1755,7 @@ def report(database,person,report_class,options_class,translated_name,name,categ
dialog = dialog_class(database,person,options_class,name,translated_name)
response = dialog.window.run()
if response == True:
if response:
try:
MyReport = report_class(dialog.db,dialog.person,dialog.options)
MyReport.begin_report()
@ -1789,6 +1789,7 @@ def write_book_item(database,person,report_class,options_class):
except:
import DisplayTrace
DisplayTrace.DisplayTrace()
return None
# Command-line generic task
def cl_report(database,name,category,report_class,options_class,options_str_dict):