l.s.f.IURIField(ITextLine) : interface documentation

Part of lp.services.fields View In Hierarchy

A URI.

A text line that holds a URI.

Bool trailing_slash If set to True, then the path component of the URI will be automatically normalized to end in a slash. If set to False, any trailing slash will be automatically removed. If set to None, URIs will not be normalized.
Method normalize Normalize a URI.
trailing_slash =
If set to True, then the path component of the URI will be automatically normalized to end in a slash. If set to False, any trailing slash will be automatically removed. If set to None, URIs will not be normalized.
def normalize(input):

Normalize a URI.

  • whitespace is stripped from the input value
  • if the field requires (or forbids) a trailing slash on the URI, ensures that the widget ends in a slash (or doesn't end in a slash).
  • the URI is canonicalized.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.