home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / python2.6 / dist-packages / computerjanitorapp / ui.pyc (.txt) < prev   
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  1.2 KB  |  28 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import computerjanitor
  5.  
  6. class UserInterface(object):
  7.     '''This is the base class for user interfaces.
  8.     
  9.     The user interface is in charge of obeying command line arguments,
  10.     and interacting with the user.
  11.     
  12.     The app and pm given to the constructor are stored in the app and
  13.     pm attributes.
  14.         
  15.     '''
  16.     
  17.     def __init__(self, app, pm, mustberoot = True):
  18.         self.pm = pm
  19.         self.app = app
  20.         self.mustberoot = mustberoot
  21.  
  22.     
  23.     def run(self, options, args):
  24.         '''Obey command line arguments in ARGS, and options in OPTIONS.'''
  25.         raise computerjanitor.UnimplementedMethod(self.run)
  26.  
  27.  
  28.