Home | Trees | Indices | Help |
---|
|
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.
Author: Andr\xc3\xa9 Malo
|
|||
TempFile Tempfile container class |
|||
_DummyPopen4 Dummy Popen4 class for platforms which don't provide one in popen2 |
|||
_DummyPopen3 Dummy Popen3 class for platforms which don't provide one in popen2 |
|||
_LocaleFile Transform filenames according to locale |
|||
ReadOnlyDict Read only dictionary |
|||
SafeDict A dict, which returns '' on unknown keys or false values |
|
|||
popen2.Popen3 or _DummyPopen3
|
|
||
popen2.Popen4 or _DummyPopen4
|
|
||
str or list
|
|
||
list
|
|
||
tuple or None
|
|
||
str or unicode
|
|
||
unicode
|
|
||
list
|
|
||
any |
|
||
|
|||
dict
|
|
||
tuple
|
|
||
|
|||
tuple
|
|
|
|||
filename = _LocaleFile()
|
|||
__package__ =
|
|
Returns a pipe object (
|
Returns a pipe object (
|
Return the revised command suitable for being exec'd Currently this means, it's escaped and converted to a string only for Win32, because on this system the shell is called. For other systems the list is just returned.
Note: This is more or less the same as the stuff in svn.fs._escape_msvcrt_shell_command/arg. But it belongs somewhere else - e.g. into a util module... Perhaps once a day the whole package goes directly into the subversion distribution and then it's all cool. |
Split a command string with respect to quotes and such The command string consists of several tokens:
Here's an example:
|
Returns user data extracted from x509 subject string
|
Returns a filled template If the
|
Replaces control characters with replace characters
|
Returns the directories up to a (posix) path
|
Returns the value of the glob, where path matches
|
Returns a modified query string
Note:
set is a convenience parameter, it's actually a combination of
Warning:
query parameters containing no |
Parses a query string
Warning:
query parameters containing no |
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).
|
Inherits class cls from *bases
Note: cls needs a __dict__, so __slots__ is tabu |
Parses a content type (the email module unfortunately doesn't provide a public interface for this)
Warning: comments are not recognized yet |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sun Sep 25 21:07:32 2011 | http://epydoc.sourceforge.net |