Package svnmailer :: Package browser :: Module _base :: Class ParsedUrl
[show private | hide private]
[frames | no frames]

Class ParsedUrl

object --+
         |
        ParsedUrl


Container for URL parsing and modification
Method Summary
  __init__(self, url)
Initialization
str __str__(self)
Returns the URL as string
ParsedQuery _createParsedQuery(self, query)
Creates a new ParsedQuery instance
ParsedUrl copy(self)
Returns a new identical object
    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...
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...

Instance Variable Summary
str fragment: The fragment (anchor)
str netloc: The netloc (www.example.org)
str param: The path parameter (jsessionid=abcdef)
str path: The path (/foo/bar)
ParsedQuery query: The query string (a=b&c=d)
str scheme: The scheme (http)

Class Variable Summary
tuple PARSENAMES: names for the urlparse tuple

Method Details

__init__(self, url)
(Constructor)

Initialization
Parameters:
url - The url to parse
           (type=str or ParsedUrl)
Raises:
AttributeError - If url is a ParsedUrl and one or more of the attributes named in PARSENAMES are missing.
Overrides:
__builtin__.object.__init__

__str__(self)
(Informal representation operator)

Returns the URL as string
Returns:
The URL as string
           (type=str)
Overrides:
__builtin__.object.__str__

_createParsedQuery(self, query)

Creates a new ParsedQuery instance
Parameters:
query - The query to parse
           (type=str or ParsedQuery)
Returns:
The ParsedQuery instance
           (type=ParsedQuery)

copy(self)

Returns a new identical object
Returns:
The new ParsedUrl instance
           (type=ParsedUrl)

Instance Variable Details

fragment

The fragment (anchor)
Type:
str

netloc

The netloc (www.example.org)
Type:
str

param

The path parameter (jsessionid=abcdef)
Type:
str

path

The path (/foo/bar)
Type:
str

query

The query string (a=b&c=d)
Type:
ParsedQuery

scheme

The scheme (http)
Type:
str

Class Variable Details

PARSENAMES

names for the urlparse tuple
Type:
tuple
Value:
('scheme', 'netloc', 'path', 'param', 'query', 'fragment')             

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