Commit Graph

150 Commits

Author SHA1 Message Date
Roman Mogilatov
2236d77313 Refactor DeclarativeCatalog 2015-11-12 16:56:00 +02:00
Roman Mogilatov
be1ff0445d Refactor DeclarativeCatalog 2015-11-12 13:57:33 +02:00
Roman Mogilatov
4252fbfe4c Implement DeclarativeCatalog.__repr__ and add some tests for it 2015-11-12 01:00:27 +02:00
Roman Mogilatov
ed898f7fe2 Add UndefinedProviderError(Error, AttributeError) for proper work of hasattr() 2015-11-11 19:48:24 +02:00
Roman Mogilatov
9a617479cc Refactor CatalogBundle 2015-11-11 15:51:42 +02:00
Roman Mogilatov
7684bc7dcb Refactor DynamicCatalog 2015-11-11 15:45:39 +02:00
Roman Mogilatov
677e7143a2 Change CatalogBundle initialization procedure 2015-11-11 15:19:24 +02:00
Roman Mogilatov
548847f83a Remove required DynamicCatalog.name attribute 2015-11-10 19:47:59 +02:00
Roman Mogilatov
05d6db5664 Make some refactoring after DynamicCatalog implementation 2015-11-10 19:38:18 +02:00
Roman Mogilatov
b456d770b6 Implement DynamicCatalog 2015-11-10 17:58:04 +02:00
Roman Mogilatov
8b175f0b71 Refactor DeclarativeCatalog metaclass 2015-11-10 15:15:48 +02:00
Roman Mogilatov
b076b871a1 Change provider-to-catalog binding restrictions 2015-11-10 15:01:06 +02:00
Roman Mogilatov
68ce5c79ef Rename AbstractCatalog to DeclarativeCatalog 2015-11-10 10:42:29 +02:00
Roman Mogilatov
b22b893623 0.10.5 release 2015-11-04 16:32:04 +02:00
Roman Mogilatov
addbd16b3b 0.10.4 release 2015-11-02 10:58:09 +02:00
Roman Mogilatov
607e51e218 Update example docblocks 2015-10-26 12:52:52 +02:00
Roman Mogilatov
53f692a78c Fix bug with injecting entities with __getattr__ implementations 2015-10-23 18:07:52 +03:00
Roman Mogilatov
a42fefacef Update some examples 2015-10-23 17:05:24 +03:00
Roman Mogilatov
b269023f7a Improve functionality of catalog overriding 2015-10-23 16:41:21 +03:00
Roman Mogilatov
3fac75cb79 Move version number inside dependency_injector package 2015-10-23 15:20:25 +03:00
Roman Mogilatov
6dc007c8df Add functionality for using positional argument injections with @inject decorator 2015-10-23 14:44:36 +03:00
Roman Mogilatov
5bdca32779 Add Callable.injections read-only attribute for getting a full list of Callable injections 2015-10-22 17:43:29 +03:00
Roman Mogilatov
59b98959bc Add support of positional argument injections for Callable provider
Also current commit contains:
- Some refactoring of internals
- Additional unit tests for Factory and Singleton providers
2015-10-21 11:47:37 +03:00
Roman Mogilatov
9b4a7bd28c Add additional unittests for full validation of Singleton provider 2015-10-19 15:41:16 +03:00
Roman Mogilatov
824ed4f3e9 Add support of positional args for Factory & Singleton providers 2015-10-19 14:50:15 +03:00
Roman Mogilatov
7a4ffa140f Add functionality of checking catalog bundles ownership 2015-10-19 12:12:38 +03:00
Roman Mogilatov
c13bee6fb5 Add optimization for Injection.value property 2015-10-19 10:50:17 +03:00
Roman Mogilatov
53025756d8 Fix bug with injections of catalog bundles 2015-10-19 10:47:24 +03:00
Roman Mogilatov
476e867dc9 Restrict repeatedly binding of catalog providers 2015-10-17 01:00:32 +03:00
Roman Mogilatov
40dc54b64b Refactor catalog bundle 2015-10-16 23:54:51 +03:00
Roman Mogilatov
730d46f9a0 Add catalog packs 2015-10-15 20:16:40 +03:00
Roman Mogilatov
3b54763563 Change catalog subsets factory implementation 2015-10-14 18:34:50 +03:00
Roman Mogilatov
2ed460f054 Refactor catalog subsets 2015-10-14 17:51:05 +03:00
Roman Mogilatov
3e8232e9db Add catalog subsets 2015-10-12 16:41:38 +03:00
Roman Mogilatov
8ab0cc5e0e Fix PEP257 D211 error 2015-10-11 23:41:55 +03:00
Roman Mogilatov
ee73f03cb2 Implement catalog providers, cls_providers and inherited providers class attributes 2015-10-07 14:06:11 +03:00
Roman Mogilatov
53e8f62c89 Merge remote-tracking branch 'origin/inject_for_classes' 2015-09-28 22:19:28 +03:00
Roman Mogilatov
512544ea9f Add fix for @inject decorator with classes on PyPy and Py3 2015-09-28 21:55:30 +03:00
Roman Mogilatov
2c85b38113 Fix bug with default object.__init__ in Py3 2015-09-28 14:32:07 +03:00
Roman Mogilatov
1c55f9d645 Add functionality for @inject decorator to work with classes 2015-09-28 14:19:22 +03:00
Roman Mogilatov
6cbd0ce7fc 0.9.5 release 2015-09-14 10:53:24 +03:00
Roman Mogilatov
650ee014ec Implement thread-safety 2015-09-04 02:34:24 +03:00
Roman Mogilatov
b5ad081976 Add few minor refactorings 2015-09-03 16:00:23 +03:00
Roman Mogilatov
bb33c925de Add simplified syntax of kwarg injections for `Callable` provider 2015-09-01 15:21:55 +03:00
Roman Mogilatov
a1cf735391 Add Injection into __all__ list of top level package 2015-09-01 15:08:42 +03:00
Roman Mogilatov
4fb3a12770 Add additional shortcuts for top level package 2015-09-01 15:01:15 +03:00
Roman Mogilatov
bab7265a90 Make minor import refactorings 2015-09-01 00:36:26 +03:00
Roman Mogilatov
01970dba27 Add simplified kwarg injections syntax for Factory and Singleton providers 2015-09-01 00:31:29 +03:00
Roman Mogilatov
6ac0e4a04e Add simplified syntax for @inject decorator 2015-09-01 00:30:38 +03:00
Roman Mogilatov
6d0f892f8a Rename Objects to Dependency Injector 2015-08-31 16:31:38 +03:00