summaryrefslogtreecommitdiff
path: root/registry.py
Commit message (Collapse)AuthorAgeFilesLines
* [registry] type.__new__ first arg is the metaclass, not the classSylvain Th?nault2013-04-291-2/+2
|
* [registry] change select_or_none implementation to remove one level of ↵Sylvain Th?nault2013-04-111-3/+3
| | | | | | | | | | indirection Rational: when analyzing cubicweb selectors performance, it has been found that the cost of emiting NoSelectableObject and catching it was higher than returning None and testing for None values. Also, it will be definitly an improvment here as we avoid calling an intermediary function that test for None and raise the exception if needed.
* remove 2 accidentally introduced tabs breaking python 3 compat. closes #117580Sylvain Th?nault2013-02-141-1/+1
|
* [registry] docstring fixesSylvain Th?nault2013-02-041-3/+5
|
* [registry]?use register_all when no registration callback defined. Closes ↵Sylvain Th?nault2013-01-091-14/+15
| | | | #111011
* [registry] introduce RegistrableObject and RegistrableInstance base classes. ↵Sylvain Th?nault2013-01-141-80/+179
| | | | | | | | | | Closes #98742 and make them mandatory *for automatic registration*. Cleanup automatic registration code accordingly. Instances are now registrable, and automatically registered provided they inherit from RegistrableInstance.
* [registry] cleanup the doc and add some commentsAurelien Campeas2013-01-141-52/+61
|
* [registry] enhanced logging during registrationSylvain Th?nault2012-12-211-9/+15
|
* [registry]?deprecate usage of leading underscore to mark class as abstract / ↵Sylvain Th?nault2013-01-111-3/+7
| | | | not to register
* [registry] introduce objid/objname method on registries instead of using ↵Sylvain Th?nault2013-01-111-17/+33
| | | | | | function/inlined code. Partially closes #98742 So they become customizable per registry.
* [registry] setdefault catch wrong exception. Closes #111010Sylvain Th?nault2012-11-131-1/+1
|
* [registry] enhance assertion error messageSylvain Th?nault2012-11-131-1/+2
|
* [registry] add assertion useful if e.g. arguments are inversed by inadvertanceSylvain Th?nault2012-09-201-0/+2
|
* [registry] make pylint happy! (closes #92191)Nicolas Chauvat2012-04-171-12/+27
|
* backported cubicweb's registry. Closes #84654Sylvain Th?nault2012-01-121-0/+958