root/cpsskins/branches/jmo-perspectives/browser/negotiation/chain.py

Revision 2769, 1.0 kB (checked in by jmorliaguet, 3 years ago)

- added missing files

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 ##############################################################################
2 #
3 # Copyright (c) 2005-2006 Nuxeo and Contributors.
4 # All Rights Reserved.
5 #
6 # This software is subject to the provisions of the Zope Public License,
7 # Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
8 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
9 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
10 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
11 # FOR A PARTICULAR PURPOSE.
12 #
13 ##############################################################################
14 """
15
16 $Id$
17 """
18 __docformat__ = "reStructuredText"
19
20 from zope.interface import implements
21
22 from cpsskins.browser.negotiation.interfaces import INegotiationChain
23
24 class NegotiationChain:
25
26     implements(INegotiationChain)
27
28     def __init__(self):
29         self.chain = ()
30
31     def add(self, scheme):
32         self.chain += scheme,
33
34     def __iter__(self):
35         return iter(self.chain)
36
Note: See TracBrowser for help on using the browser.