| Home | Trees | Indices | Help |
|
|---|
|
|
Utility functions. Synopsis -------- Just a list of utility functions that help you for common tasks.
|
|||
| |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
__doc__ = """Utility functio
|
|||
ATOM10_PREFIX =
|
|||
ATOMPUB_PREFIX =
|
|||
THR_PREFIX =
|
|||
ATOM10_NS =
|
|||
ATOMPUB_NS =
|
|||
THR_NS =
|
|||
XML_NS =
|
|||
XML_PREFIX =
|
|||
XMLNS_NS =
|
|||
XMLNS_PREFIX =
|
|||
XHTML1_NS =
|
|||
XHTML1_PREFIX =
|
|||
ENCODING =
|
|||
|
|||
Returns a uuid value as specified in RFC 4122. The ``seed``, if provided, allows this function to be idempotent. When not provided a random value is returned each time. |
Builds an URI as an unicode object The ``scheme`` is URI scheme (e.g. http) The ``authority`` is the hostname The ``trail`` is the URI path |
Returns an URN from uuid The ``seed``, if provided, allows this function to be idempotent. When not provided a random value is returned each time. |
Returns a date respecting the ISO 8601 format If ``dt`` is not provided the current UTC time is used. |
Attempts to parse value as an ISO date and if succeeding returns a datetime object, ``None`` otherwise. The ``value`` is a date in a string format. |
Decodes and returns the provided slug value as a byte string. For example: 'The Beach at S%C3%A8te' will return 'The Beach at Sète' The ``slug`` is a percent-encoded utf-8 Unicode string that does not contain CR or LF. |
Returns a valid slug header as a byte string. The ``text`` is a unicode string or a bytes string of the text to encode. The ``encoding`` is encoding used on the ``text`` object |
Joins the different tokens. The safety comes from the fact that if one token is a unicode string it will be first encoded. ``tokens`` is a list of values to join. The returned value is a unicode string |
Parses the content read from the ``fileobj`` as a multipart/form-data type. Returns a dictionnary of the keys and values of the form. Do not use this function on a different media-type. |
|
|||
__doc__
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Sun Feb 17 14:54:45 2008 | http://epydoc.sourceforge.net |