How to edit dexterity types without needing to know about their behaviors
Asko Soukka <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I think, Andreas has a point here: https://www.andreas-jung.com/contents/bad-dexterity-application-design I'm not missing Archetypes accessors/setters, but I have seen similar issues with Dexterity types: it's not clear how some property should be updated. I guess, it would be possible to create a magic adapter to figure out all the currently active behaviors for the context content object, resolve all their fields and then provide implicit setters and getters, which again would use the respective behaviors for gettin/setting values. Or is there already a one somewhere hidden in plone.dexterity or supermodel? -Asko ------------------------------------------------------------------------------ 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