def __init__(self, config, argv, stdin): """Initializes up the L{FILE_PREFIX}, L{LAST_DIRECTORY_FILE}, and other variables""" try: CvsController.FILE_PREFIX = "#cvs.%s." % os.getpgrp() except AttributeError: sys.stderr.write("WARNING, the CvsController is designed only to run on Unix.") CvsController.FILE_PREFIX = "#cvs." CvsController.LAST_DIRECTORY_FILE = "%s/%slastdir" % (Controller.TMPDIR, CvsController.FILE_PREFIX) Controller.__init__(self, config, argv, stdin) self.model.user = os.getenv("USER") or os.getlogin()
def _executeViews(self): """Overrides the parent C{_executeViews} to r-build the model with all of the temporary files""" self._loadSavedDirectoriesIntoModel() # Carry on with executing the views Controller._executeViews(self)