Home | Trees | Indices | Help |
---|
|
Media URI management
An URI is structured like this:scheme://[user:password@]host[:port]/path[/][?params][#fragment]This class is able to parse that and wrap access to all found attributes. When I'm parsing file:// URIs I'm allowed to replace paths like:
./path/to/fooWith the following:
"%s/path/to/foo" % os.curdir
|
|||
__metaclass__ |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
unquoted Unicode |
|
||
dict |
|
||
unicode |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
MediaUri |
|
||
unicode |
|
||
unicode |
|
||
string |
|
||
string |
|
||
int |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
|
|
|||
name =
|
|
|||
unicode |
extension the extension of the uri or empty |
||
unicode |
filename the filename of the uri, means the part behind the last slash. |
||
string |
fragment optional URI fragment |
||
string |
host the URI hostname |
||
unicode or elisa.extern.translator.Translateable
|
label the label for this uri (per default the same as the filename) |
||
MediaUri |
parent the parent uri (means the last part of the path is removed) |
||
string |
password the optional password |
||
string |
path the URI path, delimitted by slashes (/) |
||
int |
port URI optional port. |
||
string |
scheme the URI scheme |
||
string |
user the optional username |
|
|||
Inherited from |
|
Create an Uri from various representations. Representation can be either a string containing the uri or the components of the uri stored in a dictionary.
|
|
|
|
|
|
|
Return the filename of the Uri. Returns last path component label parameter like uri://path/to/foo then 'foo' is returned. If there is no path, like in uri://host:port/ or in uri:// an empty unicode is returned |
|
Return the parent URI. If the URI is like uri://path/to/foo return uri://path/to/ |
|
|
|
Compare myself with another uri. @see help of builtin cmp()
|
|
|
|
extensionthe extension of the uri or empty
|
filenamethe filename of the uri, means the part behind the last slash. Could be empty!
|
labelthe label for this uri (per default the same as the filename)
|
parentthe parent uri (means the last part of the path is removed)
|
paththe URI path, delimitted by slashes (/)
|
portURI optional port. Set to 0 if not found
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Wed Jan 16 19:08:55 2008 | http://epydoc.sourceforge.net |