| Home | Trees | Index | Help | 
|---|
| Package svnmailer :: Module util | 
 | 
This module contains some utility functions and classes used in several places of the svnmailer. These functions have a quite general character and can be used easily outside of the svnmailer as well.
| Classes | |
|---|---|
| ReadOnlyDict | Read only dictionary | 
| SafeDict | A dict, which returns '' on unknown keys or false values | 
| Singleton | Singleton base class | 
| TempFile | Tempfile container class | 
| _LocaleFile | Transform filenames according to locale | 
| _Terminal | Deal with terminal properties | 
| Function Summary | |
|---|---|
| tuple | Returns the common component and the stripped paths | 
| tuple or None | Returns user data extracted from x509 subject string | 
| unicode | Replaces control characters with replace characters | 
| any | Returns the value of the glob, where path matches | 
| list | Returns the directories up to a (posix) path | 
| Inherits class cls from *bases | |
| any | Loads a dotted name | 
| list | Split a command string with respect to quotes and such | 
| basestring | Returns a filled template | 
| tuple | Parses a content type | 
| Function Details | 
|---|
| commonPaths(paths)Returns the common component and the stripped paths It expects that directories do always end with a trailing slash and paths never begin with a slash (except root). 
 | 
| extractX509User(author)Returns user data extracted from x509 subject string
 | 
| filterForXml(value)Replaces control characters with replace characters
 | 
| getGlobValue(globs, path)Returns the value of the glob, where path matches
 | 
| getParentDirList(path)Returns the directories up to a (posix) path
 | 
| inherit(cls, *bases)Inherits class cls from *bases | 
| loadDotted(name)Loads a dotted name The dotted name can be anything, which is passively resolvable
(i.e. without the invocation of a class to get their attributes or
the like). For example,  If a dotted name was loaded successfully, the object will be cached and delivered from there the next time. 
 | 
| splitCommand(command)Split a command string with respect to quotes and such The command string consists of several tokens: 
 Here's an example: r'foo bar "baz" "zo\"" "\\nk"' resolves to ['foo', 'bar', 'baz', 'zo"', r'\nk'] 
 | 
| substitute(template, subst)Returns a filled template If the  
 | 
| parseContentType(value)Parses a content type (the email module unfortunately doesn't provide a public interface for this) 
 | 
| Home | Trees | Index | Help | 
|---|
| Generated by Epydoc 2.0 on Sun Sep 25 20:49:02 2005 | http://epydoc.sf.net |