Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 20 May 2010 20:47:55 +0200] rev 5556
[entity] introduce a new 'adapters' registry
This changeset introduces the notion in adapters (as in Zope Component Architecture)
in a cubicweb way, eg using a specific registry of appobjects.
This allows nicer code structure, by avoid clutering entity classes and moving
code usually specific to a place of the ui (or something else) together with the
code that use the interface.
We don't use actual interface anymore, they are implied by adapters (which
may be abstract), whose reg id is an interface name.
Appobjects that used to 'implements(IFace)' should now be rewritten by:
* coding an IFaceAdapter(EntityAdapter) defining (implementing if desired)
the interface, usually with __regid__ = 'IFace'
* use "adaptable('IFace')" as selector instead
Also, the implements_adapter_compat decorator eases backward compatibility
with adapter's methods that may still be found on entities implementing
the interface.
Notice that unlike ZCA, we don't support automatic adapters chain (yagni?).
All interfaces defined in cubicweb have been turned into adapters, also
some new ones have been introduced to cleanup Entity / AnyEntity classes
namespace. At the end, the pluggable mixins mecanism should disappear in
favor of adapters as well.
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 20 May 2010 20:47:13 +0200] rev 5555
backport stable
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 20 May 2010 20:45:28 +0200] rev 5554
[config] move web specific config to the web section of the configuration file
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 20 May 2010 20:45:21 +0200] rev 5553
* * *
[server] move daemonize code to lgc.daemon. Fix on the way pb w/closed standard output on repository config
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 20 May 2010 10:55:33 +0200] rev 5552
typo
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 20 May 2010 10:41:36 +0200] rev 5551
[migration] fix storage_change migraction to avoid exhausting the server's memory
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 20 May 2010 10:40:57 +0200] rev 5550
[repo] set log methods on the actually desired class
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 20 May 2010 10:40:33 +0200] rev 5549
[bfss] ensure base name doesn't contain path separator
Nicolas Chauvat <nicolas.chauvat@logilab.fr> [Thu, 20 May 2010 10:40:55 +0200] rev 5548
merge
Nicolas Chauvat <nicolas.chauvat@logilab.fr> [Thu, 20 May 2010 10:40:29 +0200] rev 5547
[web] remove dead code
Adrien Di Mascio <Adrien.DiMascio@logilab.fr> [Thu, 20 May 2010 10:04:45 +0200] rev 5546
[forms] consider __action_xxx field if passed to JSonController.validate_form
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 18 May 2010 18:18:08 +0200] rev 5545
backport stable
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 18 May 2010 18:15:42 +0200] rev 5544
Added tag cubicweb-debian-version-3.8.2-1 for changeset 2b962bb9eee8
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 18 May 2010 18:15:42 +0200] rev 5543
Added tag cubicweb-version-3.8.2 for changeset ef2e37d34013
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 18 May 2010 16:49:41 +0200] rev 5542
[test] absolute sqlite database names in source initialization, avoid pb when cwd is changed later