Changeset 9451


Ignore:
Timestamp:
Nov 24, 2014 4:43:21 AM (4 years ago)
Author:
wehart
Message:

A simple change to transfer the
execution of plugins through pyutilib.component.core instead of
pyomo.util._plugin. This is the first step towards
deprecating the plugin functionality in Pyomo (again). PyUtilib?
now includes the same memory management logic that was supported in
Coopr/Pyomo?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyomo/trunk/pyomo/util/plugin.py

    r9447 r9451  
    1515
    1616
    17 if False:
     17if True:
    1818    #
    1919    # Plugins defined with pyutilib.component.core
    2020    #
    21     from pyutilib.component.core import Plugin, implements, Interface, CreatePluginFactory, PluginMeta, alias, ExtensionPoint, SingletonPlugin, PluginFactory
     21    from pyutilib.component.core import Plugin, implements, Interface, CreatePluginFactory, PluginMeta, alias, ExtensionPoint, SingletonPlugin, PluginFactory, PluginError
    2222
    2323    def push(name):
    2424        import pyutilib.component.core
    25         pyutilib.component.core.PluginGlobals.push_env(name)
     25        pyutilib.component.core.PluginGlobals.add_env(name)
    2626
    2727    def pop():
Note: See TracChangeset for help on using the changeset viewer.