Ft.Lib.Uri

Classes

class ErrorRecognizingURLopener(urllib.FancyURLopener)
http_error_default(self, url, fp, errcode, errmsg, headers)

Data and other non-method functions defined here:

__doc__ = None
__module__ = 'Ft.Lib.Uri'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
class SchemeRegistryResolver(Ft.Lib.Uri.UriResolverBase)
__init__(self, handlers=None)
resolve(self, uri, base=None)

Data and other non-method functions defined here:

__doc__ = None
__module__ = 'Ft.Lib.Uri'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
class UriDict(__builtin__.dict)
__delitem__(self, key)
__getitem__(self, key)
__setitem__(self, key, value)
_normalizekey(self, key)
has_key(self, key)

Data and other non-method functions defined here:

__dict__ = <dict-proxy object>
__doc__ = None
__module__ = 'Ft.Lib.Uri'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__weakref__ = <member '__weakref__' of 'UriDict' objects>
class UriException(Ft.FtException)
__init__(self, errorCode, *args, **kwargs)

Data and other non-method functions defined here:

INVALID_BASE_URI = 100
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
INVALID_PUBLIC_ID_URN = 300
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
NON_FILE_URI = 120
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
OPAQUE_BASE_URI = 112
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
RELATIVE_BASE_URI = 111
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
RESOURCE_ERROR = 130
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
SCHEME_REQUIRED = 200
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
UNIX_REMOTE_HOST_FILE_URI = 121
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
UNSUPPORTED_PLATFORM = 1000
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
__doc__ = None
__module__ = 'Ft.Lib'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
class UriResolverBase
__init__(self)
generate(self, hint=None)
normalize(self, uri, base)
resolve(self, uri, base=None)

Data and other non-method functions defined here:

__doc__ = None
__module__ = 'Ft.Lib.Uri'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Functions

Absolutize(uriRef, baseUri)
BaseJoin(base, uriRef)
GetScheme(uriRef)
IsAbsolute(identifier)
MakeUrllibSafe(uri)
MatchesUriRefSyntax(s)
MatchesUriSyntax(s)
NormalizeCase(uriRef, doHost=0)
NormalizeEmptyComponents(uriRef)
NormalizePercentEncoding(s)
OsPathToUri(path, attemptAbsolute=0, osname=None)
PathResolve(paths)
PercentDecode(s, encoding='utf-8', decodable=None)
PercentEncode(s, encoding='utf-8', encodeReserved=1, spaceToPlus=0, nlChars=None, reservedChars="/=&+?#;@,:$!*[]()'")
PublicIdToUrn(publicid)
RemoveDotSegments(path)
SplitAuthority(authority)
SplitUriRef(uriref)
UnsplitUriRef(uriRefSeq)
UriToOsPath(uri, attemptAbsolute=0, encoding='utf-8', osname=None)
UrlOpen(url, *args, **kwargs)
UrnToPublicId(urn)
_getDriveLetter(s)
_initNtPathPattern()
_initSplitAuthorityPattern()
_initSplitUriRefPattern()
_initUriValidationRegex()
_splitNtPath(path)

Data

BASIC_RESOLVER = <Ft.Lib.Uri.UriResolverBase instance>
DEFAULT_URI_SCHEMES = ('http', 'ftp', 'file', 'gopher', 'ftss')
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items

If the argument is a tuple, the return value is the same object.
FTSS_URI_SCHEME = 'ftss'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
REG_NAME_HOST_PATTERN = <_sre.SRE_Pattern object>
RESERVED = "/=&+?#;@,:$!*[]()'"
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
SCHEME_PATTERN = <_sre.SRE_Pattern object>
UNRESERVED_PATTERN = <_sre.SRE_Pattern object>
WINDOWS_SLASH_COMPAT = 1
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
__file__ = 'build/lib.linux-ppc-2.2/Ft/Lib/Uri.py'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__name__ = 'Ft.Lib.Uri'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
_ntPathToUriSetupCompleted = 0
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
_splitAuthoritySetupCompleted = 0
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
_splitUriRefSetupCompleted = 0
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
_validationSetupCompleted = 0
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
ascii_letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.