Commit Graph

68 Commits

Author SHA1 Message Date
Roman Mogilatov
1b4c6dbf8b Renaming of Provider.__provide__() -> Provider._provide() for improving providers extending 2015-07-22 10:26:34 +03:00
Roman Mogilatov
7d3460deba Add functionality for resetting of last overriding provider 2015-07-21 09:29:50 +03:00
Roman Mogilatov
ab5bc6a503 Fixing bad for py3 dict.iteritems() usage after refactoring of Catalog using metaclasses 2015-07-17 19:43:23 +03:00
Roman Mogilatov
71101d98f8 Fixing py3 errors after recatoring of Catalog using metaclasses 2015-07-17 19:39:54 +03:00
Roman Mogilatov
0e272f9d58 Refactoring of Catalog using metaclass 2015-07-17 19:31:44 +03:00
Roman Mogilatov
acc9259ddd Removing delegate option from injections 2015-07-11 23:34:23 +03:00
Roman Mogilatov
4620ad7f29 Adding delegate option for injections 2015-07-11 17:21:36 +03:00
Roman Mogilatov
4db4629c75 Fixing comment in catalogs 2015-07-06 16:52:51 +03:00
Roman Mogilatov
e3ea517d72 Minor ExternalDependency provider updates, Adding ExternalDependency provider docs 2015-06-18 16:34:26 +03:00
Roman Mogilatov
b055a86c92 Improving of Providers extending 2015-05-25 10:45:52 +03:00
Roman Mogilatov
f67343c45c Refactoring of @inject decorator 2015-05-16 22:01:03 +03:00
Roman Mogilatov
a5337b2fc8 Last modifications on NewInstance to Factory provider renaming 2015-05-14 11:59:47 +03:00
Roman Mogilatov
c824eae566 Renaming NewInstance provider to Factory provider 2015-05-14 11:35:41 +03:00
Roman Mogilatov
b0720cfc2c moving @override and @inject decorators to decorators module 2015-04-14 23:17:53 +03:00
Roman Mogilatov
7216b8a5b9 Adding Objects introduction 2015-03-30 00:46:48 +03:00
Roman Mogilatov
264a12daaf Removing class service variables from __slots__ list 2015-03-26 01:38:48 +02:00
Roman Mogilatov
65f7704463 Minor refactoring 2015-03-23 16:27:48 +02:00
Roman Mogilatov
b0c2005288 Adding tests for inject() decorator 2015-03-23 12:19:58 +02:00
Roman Mogilatov
1032143f5b Renaming InitArg to KwArg, adding @inject decorator 2015-03-23 01:04:18 +02:00
Roman Mogilatov
6bbf7e3526 Remove providers.Scoped because it being has not yet justified 2015-03-22 00:36:59 +02:00
Roman Mogilatov
eaf5179c76 Provider.overridden lazy initialization 2015-03-20 15:16:11 +02:00
Roman Mogilatov
27bf9e0a8e Remove ExternalDependency.satisfy() in favor of inherited Provider.override() 2015-03-20 14:53:47 +02:00
Roman Mogilatov
3b880d12a5 Add ability to reset provider override 2015-03-20 13:32:11 +02:00
Roman Mogilatov
e817f726c2 Fix of bug in Python 2.6 with failed isclass check in inspect module 2015-03-18 12:57:12 +02:00
Roman Mogilatov
87fc17284c adding positional arg numbers for Python 2.6 compatibility 2015-03-18 12:48:19 +02:00
Roman Mogilatov
e0cefd0fa1 Remove unused import from providers 2015-03-16 15:11:41 +02:00
Roman Mogilatov
0dbc7a5b58 Add docblock updates for providers.Config 2015-03-16 15:10:39 +02:00
Roman Mogilatov
47d33e524c Add tests for providers.Config & refactoring of it 2015-03-16 15:09:01 +02:00
Roman Mogilatov
1736a6e008 Add check for callable in providers.Callable.__init__ 2015-03-16 11:52:53 +02:00
Roman Mogilatov
65f47b1222 Minor providers.Config refactoring 2015-03-16 11:41:42 +02:00
Roman Mogilatov
08c7e7048f Add tests for providers.Callable & minor refactoring 2015-03-16 01:56:23 +02:00
Roman Mogilatov
d36e01bf3e Add tests for providers.ExternalDependency & refactoring 2015-03-16 01:10:43 +02:00
Roman Mogilatov
37f8382f4b Add tests for providers.Scoped & little test refactoring 2015-03-15 15:31:05 +02:00
Roman Mogilatov
7ab731eacc Add support of multiple scopes for providers.Scoped 2015-03-15 01:18:59 +02:00
Roman Mogilatov
fa113af977 Test for providers.Singleton 2015-03-15 00:50:24 +02:00
Roman Mogilatov
91ea284723 Some tests for NewInstance provider, NewInstance provider refactoring 2015-03-14 15:57:30 +02:00
Roman Mogilatov
6567ee2b4d renaming ProviderDelegate to Delegate 2015-03-14 00:02:01 +02:00
Roman Mogilatov
abdb1eeac0 adding tests for ProviderDelegate, making of some refactoring 2015-03-13 17:46:03 +02:00
Roman Mogilatov
9d72eaf675 adding objects-specific errors 2015-03-13 17:31:07 +02:00
Roman Mogilatov
5852d38b00 removing typo 2015-03-12 12:49:54 +02:00
Roman Mogilatov
a964f55802 minor codestyle fixes 2015-03-12 12:49:30 +02:00
Roman Mogilatov
c7af4d2f8b adding some checks for Provider and minor codestyle fixes 2015-03-12 12:45:51 +02:00
Roman Mogilatov
0c1c13be33 updating Catalog override method name 2015-03-12 12:45:15 +02:00
Roman Mogilatov
ff4a092dab adding utils tests, fixing of bug in utils with returning True for checked classes, not only instances 2015-03-12 12:01:56 +02:00
Roman Mogilatov
dbde2b157e refusing of filter builtin function 2015-03-11 15:27:38 +02:00
Roman Mogilatov
e61e495931 switch to using utils module for type checks & and adding slots 2015-03-11 15:18:42 +02:00
Roman Mogilatov
3b37476d23 minor codestyle fixes 2015-03-10 11:51:13 +02:00
Roman Mogilatov
d48616736b updating examples codestyle 2015-03-10 00:43:23 +02:00
Roman Mogilatov
6eadac8a75 some improvements for ProviderDelegate 2015-03-09 00:24:46 +02:00
Roman Mogilatov
e1f2d5e3b8 making pep257 and flake8 happy 2015-03-09 00:01:39 +02:00