app/soc/views/models/document.py
changeset 650 33b6dcae5615
parent 629 492df53e4a0f
child 656 a76f1b443ea4
equal deleted inserted replaced
649:95a41542e693 650:33b6dcae5615
    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