2007-12-06 Douglas S.Blank <dblank@cs.brynmawr.edu>

* src/PluginUtils/_PluginMgr.py: return values on load_plugins was 
	reversed: return True if errors.



svn: r9453
This commit is contained in:
Doug Blank 2007-12-07 01:05:32 +00:00
parent 1ecf25c776
commit 4742947510
2 changed files with 7 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2007-12-06 Douglas S.Blank <dblank@cs.brynmawr.edu>
* src/PluginUtils/_PluginMgr.py: return values on load_plugins was
reversed: return True if errors.
2007-12-06 Jim Sack <jgsack@san.rr.com> 2007-12-06 Jim Sack <jgsack@san.rr.com>
* src/GrampsDbUtils/_GedcomParse.py : #1418 fix read ASSO * src/GrampsDbUtils/_GedcomParse.py : #1418 fix read ASSO
* src/GrampsDbUtils/_WriteGedcom.py : #1418 fix write ASSO * src/GrampsDbUtils/_WriteGedcom.py : #1418 fix write ASSO

View File

@ -93,13 +93,13 @@ def load_plugins(direct):
modules that it finds, adding name to the attempt_lists list. If the module modules that it finds, adding name to the attempt_lists list. If the module
successfully loads, it is added to the success_list list. Each plugin is successfully loads, it is added to the success_list list. Each plugin is
responsible for registering itself in the correct manner. No attempt responsible for registering itself in the correct manner. No attempt
is done in this routine to register the tasks.""" is done in this routine to register the tasks. Returns True on error. """
global success_list,attempt_list,loaddir_list,failmsg_list global success_list,attempt_list,loaddir_list,failmsg_list
# if the directory does not exist, do nothing # if the directory does not exist, do nothing
if not os.path.isdir(direct): if not os.path.isdir(direct):
return True return False # return value is True for error
# if the path has not already been loaded, save it in the loaddir_list # if the path has not already been loaded, save it in the loaddir_list
# list for use on reloading # list for use on reloading
@ -130,10 +130,7 @@ def load_plugins(direct):
except: except:
failmsg_list.append((filename,sys.exc_info())) failmsg_list.append((filename,sys.exc_info()))
if len(failmsg_list): return len(failmsg_list) != 0 # return True if there are errors
return False
else:
return True
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #