Пример #1
0
pluginmate.env.push('myenv2')

b = B()
b.disable()
print('--------------')

e = ExtensionPoint(ITest)


pluginmate.env.pop()

print(e.services())

pluginmate.env.pop()

print (pluginmate.env('myenv'))


#'''



'''
@interface
class IOptionManager:
    pass

@implements(IOptionManager)
class OptionMager:
    def __init__(self):
        self.__values = defaultdict(dict)
Пример #2
0
 def __init__(self, interface):
     self.__interface = interface
     self.__env = pluginmate.env()