Changeset 192

Show
Ignore:
Timestamp:
02/28/07 15:41:13 (23 months ago)
Author:
lazaridis_com
Message:

re #110, use of reworked original trac loader (see trac:#4190) makes modified/loader.py obsolete

Location:
infra/tracx/tracx
Files:
1 removed
1 modified

Legend:

Unmodified
Added
Removed
  • infra/tracx/tracx/loader.py

    r170 r192  
    1717    """ (draft) Loads further plugins from the plugin/ directory 
    1818     
    19     the plugins don't need to have a egg-info, it will be generated from this 
    20     component.  
     19    the plugins need to have a egg-info (created via prepare.py or via standard 
     20    setup.py egg_info command. 
    2121     
    22     The plugins are loaded and enabled without manual intervention. 
     22    The plugins are loaded without manual intervention. 
     23     
     24    Plugins need to be enabled, either in the global or in the local ini file. 
    2325     
    2426    This way it is possible to check-out and activate multiple plugins via 
     
    5254 
    5355        # call plugin loader       
    54 #TODO: trac:#4317 - replace next line with below after fixing 
    55         from tracx.modified.loader import load_components 
    56         #from trac.loader import load_components 
    57 #         
    58         load_components(self.env, setupdirs)        
    59          
     56        import trac.loader as loader 
     57 
     58        # load egg based plugins, form tracx/plugin/* dirs 
     59        eggloader = loader.load_eggs('trac.plugins') 
     60        eggloader(self.env, setupdirs) 
     61 
     62        #load file based plugins, only form tracx/plugin dir 
     63        fileloader = loader.load_py_files() 
     64        fileloader(self.env, plugindir) 
     65 
     66 
    6067#TODO trac:$4190 - replace dummies to force component initialization 
    6168    implements(IEnvironmentSetupParticipant)