Author: jmorliaguet Date: Tue Jun 20 19:14:42 2006 New Revision: 3471 Modified: cpsskins/branches/paris-sprint-2006/standard/negotiation/engine.zcml cpsskins/branches/paris-sprint-2006/standard/negotiation/page.zcml cpsskins/branches/paris-sprint-2006/standard/negotiation/perspective.zcml
Log: - register different negotiation strategies depending on the diplay mode (view mode / editor mode) Modified: cpsskins/branches/paris-sprint-2006/standard/negotiation/engine.zcml ============================================================================== --- cpsskins/branches/paris-sprint-2006/standard/negotiation/engine.zcml (original) +++ cpsskins/branches/paris-sprint-2006/standard/negotiation/engine.zcml Tue Jun 20 19:14:42 2006 @@ -1,6 +1,8 @@ <configure xmlns="http://namespaces.zope.org/cpsskins"> + <!-- view mode --> + <negotiationchain name="engine"> <scheme @@ -10,4 +12,16 @@ </negotiationchain> + + <!-- editor mode --> + + <negotiationchain name="engine" strategy="editor"> + + <scheme + class=".engine.Request" + interface=".interfaces.IRequestNegotiationScheme" + /> + + </negotiationchain> + </configure> Modified: cpsskins/branches/paris-sprint-2006/standard/negotiation/page.zcml ============================================================================== --- cpsskins/branches/paris-sprint-2006/standard/negotiation/page.zcml (original) +++ cpsskins/branches/paris-sprint-2006/standard/negotiation/page.zcml Tue Jun 20 19:14:42 2006 @@ -1,6 +1,8 @@ <configure xmlns="http://namespaces.zope.org/cpsskins"> + <!-- view mode --> + <negotiationchain name="page"> <scheme @@ -19,19 +21,40 @@ /> <scheme - class=".page.Local" - interface=".interfaces.ILocalNegotiationScheme" + class=".page.Default" + interface=".interfaces.IDefaultNegotiationScheme" /> + </negotiationchain> + + + <!-- editor mode --> + + <negotiationchain name="page" strategy="editor"> + <scheme - class=".page.Default" - interface=".interfaces.IDefaultNegotiationScheme" + class=".page.Location" + interface=".interfaces.ILocationNegotiationScheme" + /> + + <scheme + class=".page.Cookie" + interface=".interfaces.ICookieNegotiationScheme" + /> + + <scheme + class=".page.Local" + interface=".interfaces.ILocalNegotiationScheme" /> <scheme class=".page.Context" interface=".interfaces.IContextNegotiationScheme" /> + <scheme + class=".page.Default" + interface=".interfaces.IDefaultNegotiationScheme" + /> </negotiationchain> Modified: cpsskins/branches/paris-sprint-2006/standard/negotiation/perspective.zcml ============================================================================== --- cpsskins/branches/paris-sprint-2006/standard/negotiation/perspective.zcml (original) +++ cpsskins/branches/paris-sprint-2006/standard/negotiation/perspective.zcml Tue Jun 20 19:14:42 2006 @@ -1,6 +1,8 @@ <configure xmlns="http://namespaces.zope.org/cpsskins"> + <!-- view mode --> + <negotiationchain name="perspective"> <scheme @@ -15,4 +17,21 @@ </negotiationchain> + + <!-- editor mode --> + + <negotiationchain name="perspective" strategy="editor"> + + <scheme + class=".perspective.Session" + interface=".interfaces.ISessionNegotiationScheme" + /> + + <scheme + class=".perspective.Location" + interface=".interfaces.ILocationNegotiationScheme" + /> + + </negotiationchain> + </configure> -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins