Ignore:
Timestamp:
02/17/09 13:33:51 (5 years ago)
Author:
wehart
Message:

. Changed the definition of PluginError?, to avoid a depricated warning in Python 2.6.

. Bug fix: identify interface implementations in base classes, without recursing
through the all base classes.

. Added additional error checking when setting values. Errors in options are now caught and
summarized at a higher level in the execution stack.

. Adding iteration/dict methods to SectionWrapper?. I needed these for debugging, but I expect
they'll also be useful for users.

. Misc rework of FileOption?, to clarify it's inheritance hierarchy

. Added an ExecutableOption?, which verifies that the file can be executed.

. Bug fix: when passing None to load(), correctly identify the filename that is used to set the
local directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pyutilib/plugin/misc/executable.py

    r1147 r1149  
    2121        if 'name' in kwds: 
    2222            self.name = kwds['name'] 
    23             declare_option(kwds['name'], local_name="executable", section="executables", default=None, doc=self.exec_doc) 
     23            declare_option(kwds['name'], local_name="executable", section="executables", default=None, doc=self.exec_doc, cls=ExecutableOption) 
    2424        else: 
    2525            raise PluginError("An ExternalExectuable requires a name") 
     
    3232 
    3333    def get_path(self): 
     34        if not self.enabled(): 
     35            return None 
    3436        tmp = self.executable 
    3537        if tmp is None: 
Note: See TracChangeset for help on using the changeset viewer.