Re: How to edit dexterity types without needing to know about their behaviors
Wichert Akkerman <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
On 13 Mar 2014, at 14:22, Johannes Raggam <[email protected]> wrote: > On Thu, 2014-03-13 at 14:13 +0100, Wichert Akkerman wrote: >> On 13 Mar 2014, at 14:08, Martin Aspeli <[email protected]> wrote: >> >>> I don't understand the problem. How would magic attribute resolution be better than something described in an interface using the adapter patten? >> >> Why is an adapter necessary for standard attributes like the start time for an event? I don’t understand that part. > > look here: > https://github.com/plone/plone.app.event/blob/master/plone/app/event/dx/behaviors.py#L341 Why not just use an event base class or mixin instead of a behaviour? That way you get the property normally and don’t force people to play adapter-games. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Plone-developers mailing list Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/plone-developers
signature.asc
(application/pgp-signature, 801 B)
-----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJTIbRkAAoJEIqTyjMeUx2LD0UQAI077oIKxnQkKuEgCdGCofIf l1U3vefa3rVy9KpflZK9PNHf1OYzvOxgLdFg7YVBH6ixP19t4H9r3BFd1YRb1Khh HnbIHJYRNtsSB2ZIFzdT3KBgdNx76wG/Q6eTdArnjc3z/iL5MQIv44trM4VKW0fE gjeYuw0fVVXvCdrMPy/KP+f16CxjJSHlJhu2DDmyEnQgXi0yEX5NCRCwIX21DDOc 4HJOfe0bEtXRdm5nRrU0v7EhQxFmi6SEM86Ho2QsfBw5KOefiegovxn4KoGaw1HF /Z5GQMS2GF/EmvcfFquYZXxWnsajzfo+aYgkJkKr+NWZkPbPqX9Kv2w7zGJ4kaO4 +WaCiSi6M+cGxYg410VUL5hYynQly1E5K2H7eURWAXs83MWzh1kxjUbjPaASpouF ToX2cEsdgXcfkQNFFmCjix3DH0nxsqw3bBWBiNSwDCpKrVk7ditP/3wuRP1LQaDu q+19+Kwsw9N4weEk+toOy+LrPApf1IEzwcqUFS5344Xyy0ET/9oO9mt/U5EpTNvV IKRdkazStS+Bese3ovuRqIZsyyUddr7pDNx61Qod3+RXQliu7ldYaIKHumd8ucyu f86WFBydSJhamfFv5nn427RpyYZfiXgS2Ye3wcMjZj7W32OeJ6iu1BOmrULOSf4y pRRv80tO2JxBWpdAX9ka =KtGK -----END PGP SIGNATURE-----