Author: jmorliaguet
Date: Mon Apr  3 20:50:33 2006
New Revision: 2769

Added:
   cpsskins/branches/jmo-perspectives/browser/negotiation/chain.py   (contents, 
props changed)
   cpsskins/branches/jmo-perspectives/browser/negotiation/strategy.py   
(contents, props changed)
Log:

- added missing files



Added: cpsskins/branches/jmo-perspectives/browser/negotiation/chain.py
==============================================================================
--- (empty file)
+++ cpsskins/branches/jmo-perspectives/browser/negotiation/chain.py     Mon Apr 
 3 20:50:33 2006
@@ -0,0 +1,36 @@
+##############################################################################
+#
+# Copyright (c) 2005-2006 Nuxeo and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""
+
+$Id$
+"""
+__docformat__ = "reStructuredText"
+
+from zope.interface import implements
+
+from cpsskins.browser.negotiation.interfaces import INegotiationChain
+
+class NegotiationChain:
+
+    implements(INegotiationChain)
+
+    def __init__(self):
+        self.chain = ()
+
+    def add(self, scheme):
+        self.chain += scheme,
+
+    def __iter__(self):
+        return iter(self.chain)
+

Added: cpsskins/branches/jmo-perspectives/browser/negotiation/strategy.py
==============================================================================
--- (empty file)
+++ cpsskins/branches/jmo-perspectives/browser/negotiation/strategy.py  Mon Apr 
 3 20:50:33 2006
@@ -0,0 +1,36 @@
+##############################################################################
+#
+# Copyright (c) 2005-2006 Nuxeo and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""
+
+$Id$
+"""
+__docformat__ = "reStructuredText"
+
+from zope.interface import implements
+
+from cpsskins.browser.negotiation.interfaces import INegotiationStrategy
+
+class NegotiationStrategy:
+
+    implements(INegotiationStrategy)
+
+    def __init__(self):
+        self.chains = {}
+
+    def addChain(self, chain, name):
+        self.chains[name] = chain
+
+    def getChain(self, name):
+        return self.chains[name]
+
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to