From c0308a32ff35d921e75c5cff68df14aeacd4b9f9 Mon Sep 17 00:00:00 2001 From: Sylvain Th?nault Date: Mon, 14 Jan 2013 14:08:48 +0100 Subject: [registry] introduce RegistrableObject and RegistrableInstance base classes. 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. --- ChangeLog | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 1d00693..61c8b48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,8 +3,16 @@ ChangeLog for logilab.common -- * registry: - - introduce objid and objname methods on Registry instead of classid - function and inlined code (closes #98742) + + - introduce RegistrableObject base class, mandatory to make + classes automatically registrable, and cleanup code + accordingly + + - introduce objid and objname methods on Registry instead of + classid function and inlined code plus other refactorings to allow + arbitrary objects to be registered, provided they inherit from new + RegistrableInstance class (closes #98742) + - deprecate usage of leading underscore to skip object registration, using __abstract__ explicitly is better and notion of registered object 'name' is now somewhat fuzzy @@ -312,7 +320,7 @@ ChangeLog for logilab.common - backup_command is now backup_commands (eg return a list of commands) - each command returned in backup_commands/restore_commands may now be list that may be used as argument to subprocess.call, or a string - which will the requires a subshell + which will the requires a subshell - new sql_rename_col method * deprecation: deprecated now takes an optional 'stacklevel' argument, default to 2 @@ -326,9 +334,9 @@ ChangeLog for logilab.common * db / adbh: added SQL Server support using Pyodbc * db: - - New optional extra_args argument to get_connection. - - Support Windows Auth for SQLServer by giving - extra_args='Trusted_Connection' to the sqlserver2005 driver + - New optional extra_args argument to get_connection. + - Support Windows Auth for SQLServer by giving + extra_args='Trusted_Connection' to the sqlserver2005 driver @@ -501,7 +509,7 @@ ChangeLog for logilab.common 2008-10-01 -- 0.35.2 * configuration: - fix #6011: lgc.configuration ignore customized option values - - fix #3278: man page generation broken + - fix #3278: man page generation broken * dropped context.py module which broke the debian package when some python <2.5 is installed (#5979) @@ -652,7 +660,7 @@ ChangeLog for logilab.common 2007-12-11 -- 0.25.1 * pytest: new --profile option, setup module / teardown module hook, - other fixes and enhancements + other fixes and enhancements * db: mysql support fixes @@ -701,7 +709,7 @@ ChangeLog for logilab.common meaning remaining args should not be checked * interface: new extend function to dynamically add an implemented interface - to a new style class + to a new style class @@ -773,7 +781,7 @@ ChangeLog for logilab.common has been added * deprecated fileutils.[files_by_ext,include_files_by_ext,exclude_files_by_ext] - functions in favor of new function shellutils.find + functions in favor of new function shellutils.find * mark the following modules for deprecation, they will be removed in a near version: @@ -1002,8 +1010,8 @@ ChangeLog for logilab.common * shellutils: bug fix in mv() * compat: - - use set when available - - added sorted and reversed + - use set when available + - added sorted and reversed * table: new methods and some optimizations -- cgit v1.2.1