Login | Register
My pages Projects Community openCollabNet

Subversion Developer Summit in progress... see project page

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

Class Model


Wraps the Files and Directorys created by the Controller and used by Views
Method Summary
  __init__(self)
  addDirectory(self, directory)
Adds directory into the model's directory tree
  directories(self, action)
Return a flat list of Directorys, optionally those that match action.
  directoriesWithFiles(self, action)
Return a flat list of Directorys that have changes to files
  directory(self, path)
Return the model's Directory for path; creates new directories and sub directories if needed
  file(self, path)
Return the File for the path
  files(self, action)
Return a flat list of Files, optionally those that match action
  greatestCommonDirectory(self)
Return the greatest common directory of the commit to base the module matching on

Property Summary
  log: The comment the user entered for this commit
  repo: The CVS module/SVn repo for this commit
  rootDirectory: The root directory within the SCM
  user: The user performing the commit

Method Details

addDirectory(self, directory)

Adds directory into the model's directory tree

Uses self.directory(path), except it takes a default value for the new directory to add at the bottom of the hierarchy.

directories(self, action=None)

Returns:
a flat list of Directorys, optionally those that match action.

directoriesWithFiles(self, action=None)

Returns:
a flat list of Directorys that have changes to files

directory(self, path)

Returns:
the model's Directory for path; creates new directories and sub directories if needed

file(self, path)

Returns:
the File for the path

files(self, action=None)

Returns:
a flat list of Files, optionally those that match action

greatestCommonDirectory(self)

Returns:
the greatest common directory of the commit to base the module matching on

Property Details

log

The comment the user entered for this commit
Get Method:
unknown-12344880(...)
Set Method:
unknown-12344944(...)
Delete Method:
unknown-12345008(...)

repo

The CVS module/SVn repo for this commit
Get Method:
unknown-12345072(...)
Set Method:
unknown-12345136(...)
Delete Method:
unknown-12345200(...)

rootDirectory

The root directory within the SCM
Get Method:
unknown-12344624(...)

user

The user performing the commit
Get Method:
unknown-12344688(...)
Set Method:
unknown-12344752(...)
Delete Method:
unknown-12344816(...)

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