def __init__(self, slug, uri=None):
"""Contructs an URI from slug.
def __init__(self, slug, uri=None):
"""Contructs an URI from slug.
if not match:
raise ValidationError('Invalid URI (%s). Should match: %s' % (
self.uri, self._re_wl_uri.pattern))
if not match:
raise ValidationError('Invalid URI (%s). Should match: %s' % (
self.uri, self._re_wl_uri.pattern))