equal
deleted
inserted
replaced
61 if not validate.isScopePathFormatValid(scope_path): |
61 if not validate.isScopePathFormatValid(scope_path): |
62 raise forms.ValidationError("This scope path is in wrong format.") |
62 raise forms.ValidationError("This scope path is in wrong format.") |
63 return scope_path |
63 return scope_path |
64 |
64 |
65 def clean_link_id(self): |
65 def clean_link_id(self): |
66 link_id = self.cleaned_data.get('link_id') |
66 link_id = self.cleaned_data.get('link_id').lower() |
67 # TODO(tlarsen): combine path and link_id and check for uniqueness |
67 # TODO(tlarsen): combine path and link_id and check for uniqueness |
68 if not validate.isLinkIdFormatValid(link_id): |
68 if not validate.isLinkIdFormatValid(link_id): |
69 raise forms.ValidationError("This link ID is in wrong format.") |
69 raise forms.ValidationError("This link ID is in wrong format.") |
70 return link_id |
70 return link_id |
71 |
71 |