Login | Register
My pages Projects Community openCollabNet

Welcome to the new Tigris! There have been some changes to the administration of mail lists. Project and list owners should check out the Discussion Services release notes.

Package commitmessage :: Module model :: Class Controller
[show private | hide private]
[frames | no frames]

Class Controller

Known Subclasses:
CvsController, SvnController

A base implementation for SCM-specific controllers to extend; mostly does the generic Views handling.
Method Summary
  __init__(self, config, argv, stdin)
Initializes the controller's model and saves the references to argv and stdin
  addRepoPrefix(self)
Return whether the name of the CVS module/SVN repo should prefix all of the directory paths
  matchWithRepoPrefix(self)
Return whether the name of the CVS module/SVN repo should be used in matching the greatest common directory to modules
  process(self)
Starts the SCM-agnostic process of building the model and executing the views
  _executeViews(self)
Executes the views for each module that matches the commit's base directory
  _populateModel(self)
Builds the model for the commit
  _stopProcessForNow(self)
Return whether to continue with executing the views or stop the process

Class Variable Summary
str TMPDIR = 'C:\\DOCUME~1\\stephen\\LOCALS~1\\Temp'

Method Details

__init__(self, config, argv, stdin)
(Constructor)

Initializes the controller's model and saves the references to argv and stdin
Parameters:
config - a commitmessage.util.CmConfigParser created by commitmessage.main
argv - the command line arguments, as gathered by commitmessage.main
stdin - where to stream responses to

addRepoPrefix(self)

Returns:
whether the name of the CVS module/SVN repo should prefix all of the directory paths

matchWithRepoPrefix(self)

Returns:
whether the name of the CVS module/SVN repo should be used in matching the greatest common directory to modules

process(self)

Starts the SCM-agnostic process of building the model and executing the views

_executeViews(self)

Executes the views for each module that matches the commit's base directory

_populateModel(self)

Builds the model for the commit

This should be overridden by concrete controllers with their implementation-specific logic for populating the model.

_stopProcessForNow(self)

Returns:

whether to continue with executing the views or stop the process

Gives CVS a chance to kill the current process and wait for the next one as it has to build up data between discrete per-directory executions.

Class Variable Details

TMPDIR

Type:
str
Value:
'C:\\DOCUME~1\\stephen\\LOCALS~1\\Temp'                                

Generated by Epydoc 2.1 on Thu Jan 06 10:30:34 2005 http://epydoc.sf.net