making cleanup

This commit is contained in:
Roman Mogilatov 2015-01-11 18:11:16 +02:00
parent 143ba92b0a
commit 98435c953f
2 changed files with 2 additions and 16 deletions

View File

@ -5,7 +5,7 @@
from .catalog import Catalog, overrides from .catalog import Catalog, overrides
from .providers import (Provider, NewInstance, Singleton, Class, Object, from .providers import (Provider, NewInstance, Singleton, Class, Object,
Function, Value) Function, Value)
from .injections import InitArg, Attribute, Method, uses from .injections import InitArg, Attribute, Method
__all__ = ['Catalog', 'overrides', __all__ = ['Catalog', 'overrides',
@ -15,4 +15,4 @@ __all__ = ['Catalog', 'overrides',
'Object', 'Function', 'Value', 'Object', 'Function', 'Value',
# Injections # Injections
'InitArg', 'Attribute', 'Method', 'uses'] 'InitArg', 'Attribute', 'Method']

View File

@ -2,9 +2,6 @@
Injections module. Injections module.
""" """
from inspect import isclass
from functools import wraps
class Injection(object): class Injection(object):
""" """
@ -44,14 +41,3 @@ class Method(Injection):
""" """
Method injection. Method injection.
""" """
def uses(provider):
"""
Providers usage decorator.
"""
def decorator(cls):
catalog = getattr(cls, 'catalog')
# catalog.__add__provider__(provider)
return cls
return decorator