Package svnmailer :: Package browser :: Module websvn :: Class Generator
[show private | hide private]
[frames | no frames]

Class Generator

   object --+    
            |    
BaseGenerator --+
                |
               Generator


WebSVN template generator


Method Summary
  _createTemplate(self, base_url, config)
Returns WebSVN URL templates
tuple _getNopiTemplate(self, url)
Returns no-path-info templates
tuple _getPiTemplate(self, url)
Returns path-info templates
    Inherited from BaseGenerator
  __init__(self, base_url, config, **kwargs)
Initialization
ParsedUrl _createParsedUrl(self, url)
Returns a ParsedUrl instance
dict _quoteDict(self, toquote)
URL-escapes the values of the supplied dict
str getContentDiffUrl(self, change)
Returns the content diff URL for a particular change
str getRevisionUrl(self)
Returns the revision summary URL
bool hasTemplates(self)
Returns whether there are any templates stored
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __repr__(x)
x.__repr__() <==> repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
x.__str__() <==> str(x)...
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...

Instance Variable Summary
    Inherited from BaseGenerator
dict _subst: The substitution record

Class Variable Summary
    Inherited from BaseGenerator
unicode _BASE_PATH: The previous path of the changed file
unicode _BASE_REVISION: The base revision format string
unicode _N_BASE_PATH: The format name of the previous path of the changed file
unicode _N_BASE_REVISION: The base revision format name
unicode _N_PATH: The format name of the changed path
unicode _N_REVISION: The revision format name
unicode _PATH: The changed path (without a leading slash)
str _QUERY_ENCODING: The character encoding to use for url parameters
unicode _REVISION: The revision format string

Method Details

_createTemplate(self, base_url, config)

Returns WebSVN URL templates
Raises:
MissingPHPFileError - see _getNopiTemplate
Overrides:
svnmailer.browser._base.BaseGenerator._createTemplate

_getNopiTemplate(self, url)

Returns no-path-info templates
Parameters:
url - The parsed URL
           (type=_base.ParsedUrl)
Returns:
The parameters for _base.Template.fromTemplates
           (type=tuple)
Raises:
MissingPHPFileError - The URL misses the PHP file

_getPiTemplate(self, url)

Returns path-info templates
Parameters:
url - The parsed URL
           (type=_base.ParsedUrl)
Returns:
The parameters for _base.Template.fromTemplates
           (type=tuple)

Generated by Epydoc 2.0 on Sun Sep 25 20:49:11 2005 http://epydoc.sf.net