home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- from checkbox.registry import Registry
-
- class LinkRegistry(Registry):
- '''Registry for links.
-
- The default behavior is to express the given maps as a tree of items.
- '''
-
- def __init__(self, link):
- super(LinkRegistry, self).__init__()
- self._link = link
-
-
- def __str__(self):
- return str(self._link)
-
-
- def items(self):
- items = []
- for k, v in self._link.items():
- if isinstance(v, LinkRegistry):
- continue
-
- items.append((k, v))
-
- return items
-
-
-