File: interface.py

package info (click to toggle)
zope2.7-archetypes 1.3.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,512 kB
  • ctags: 3,703
  • sloc: python: 19,007; xml: 4,774; sh: 249; makefile: 195
file content (16 lines) | stat: -rw-r--r-- 375 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
try:
    # Zope >= 2.6
    from Interface import Interface, Attribute
except ImportError:
    # Zope < 2.6
    try:
        from Interface import Base as Interface, Attribute
    except ImportError:
        class Interface:
            """ """
            pass

        class Attribute:
            """ """
            def __init__(self, doc):
                self.doc = doc