4Suite API Documentation

Module Ft.Lib.Uri

######################################################################## # $Header: /var/local/cvsroot/4Suite/Ft/Lib/Uri.py,v 1.99 2005/04/14 18:51:23 jkloth Exp $
Classes:
Functions:
Fields:

Classes

class FtUriResolver(UriResolverBase)

Methods

normalize(self, uriRef, baseUri)

Methods inherited from class UriResolverBase


class UriDict(__builtin__.dict)

Methods

__contains__(self, key)
__delitem__(self, key)
__getitem__(self, key)
__iter__(self)
__setitem__(self, key, value)
has_key(self, key)
iteritems(self)

Methods inherited from class __builtin__.dict

__cmp__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __init__, __le__, __len__, __lt__, __ne__, __new__, __repr__, clear, copy, get, items, itervalues, keys, pop, popitem, setdefault, update, values

Methods inherited from class __builtin__.object

__delattr__, __reduce__, __reduce_ex__, __setattr__, __str__

Fields

__dict__ = <attribute '__dict__' of 'UriDict' objects>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'UriDict' objects>
list of weak references to the object (if defined)

Fields

Fields


class UriResolverBase
#============================================================================= # Extendable normalization and resolution functions for URI references

Methods

__init__(self)
generate(self, hint=None)
normalize(self, uriRef, baseUri)
resolve(self, uri, baseUri=None)

Functions

Absolutize(uriRef, baseUri)
BaseJoin(base, uriRef)
GetScheme(uriRef)
IsAbsolute(identifier)
NormalizeCase(uriRef, doHost=False)
OsPathToUri(path, attemptAbsolute=True, osname=None)
PercentDecode(s, encoding='utf-8', decodable=None)
PercentEncode(s, encoding='utf-8', encodeReserved=True, spaceToPlus=False, nlChars=None, reservedChars="/=&+?#;@,:$!*[]()'")
PublicIdToUrn(publicid)
SplitAuthority(authority)
SplitUriRef(uriref)
UnsplitUriRef(uriRefSeq)
UriToOsPath(uri, attemptAbsolute=True, encoding='utf-8', osname=None)
UrlOpen(url, *args, **kwargs)

Fields

BASIC_RESOLVER = <Ft.Lib.Uri.FtUriResolver instance>
DEFAULT_URI_SCHEMES = ('http', 'https', 'file', 'ftp', 'data', 'gopher')