home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / python2.6 / dist-packages / checkbox / registries / data.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-10-12  |  1.1 KB  |  26 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from checkbox.registry import Registry
  5.  
  6. class DataRegistry(Registry):
  7.     '''Base registry for storing data.
  8.  
  9.     The default behavior is to simply return the data passed as argument
  10.     to the constructor.
  11.     '''
  12.     
  13.     def __init__(self, data = None):
  14.         super(DataRegistry, self).__init__()
  15.         self.data = data
  16.  
  17.     
  18.     def __str__(self):
  19.         return self.data
  20.  
  21.     
  22.     def items(self):
  23.         return []
  24.  
  25.  
  26.