* 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 effa5fd442
commit 2444226acc
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> 2005-01-15 Don Allingham <dallingham@users.sourceforge.net>
* src/EditPerson.py: don't use quote date * src/EditPerson.py: don't use quote date
* src/PeopleModel.py: remove BOLD * src/PeopleModel.py: remove BOLD

View File

@ -707,7 +707,8 @@ def reload_plugins(obj=None,junk1=None,junk2=None,junk3=None):
PluginStatus() PluginStatus()
else: else:
global status_up global status_up
status_up.close(None) if status_up:
status_up.close(None)
status_up = 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) dialog = dialog_class(database,person,options_class,name,translated_name)
response = dialog.window.run() response = dialog.window.run()
if response == True: if response:
try: try:
MyReport = report_class(dialog.db,dialog.person,dialog.options) MyReport = report_class(dialog.db,dialog.person,dialog.options)
MyReport.begin_report() MyReport.begin_report()
@ -1789,6 +1789,7 @@ def write_book_item(database,person,report_class,options_class):
except: except:
import DisplayTrace import DisplayTrace
DisplayTrace.DisplayTrace() DisplayTrace.DisplayTrace()
return None
# Command-line generic task # Command-line generic task
def cl_report(database,name,category,report_class,options_class,options_str_dict): def cl_report(database,name,category,report_class,options_class,options_str_dict):