"""Form used for not editing a Book."""
def __init__(self, *args, **kwargs):
"""Form used for not editing a Book."""
def __init__(self, *args, **kwargs):
def clean_source_url(self):
def normalize_html(html):
return re.sub('[\t\n]', '', html)
def clean_source_url(self):
def normalize_html(html):
return re.sub('[\t\n]', '', html)
url = self.cleaned_data['source_url']
m = re.match(r'(https?://)?(www\.|secure\.)?flickr\.com/photos/(?P<author>[^/]+)/(?P<img>\d+)/?', url)
if not m:
url = self.cleaned_data['source_url']
m = re.match(r'(https?://)?(www\.|secure\.)?flickr\.com/photos/(?P<author>[^/]+)/(?P<img>\d+)/?', url)
if not m: