app/soc/views/user/profile.py
changeset 136 a95f511bfcf8
parent 135 a7ccde9d9eed
child 137 0f572149449d
equal deleted inserted replaced
135:a7ccde9d9eed 136:a95f511bfcf8
    53   
    53   
    54   def clean_link_name(self):
    54   def clean_link_name(self):
    55     link_name = self.cleaned_data.get('link_name')
    55     link_name = self.cleaned_data.get('link_name')
    56     if not id_user.isLinkNameFormatValid(link_name):
    56     if not id_user.isLinkNameFormatValid(link_name):
    57       raise forms.ValidationError("This link name is in wrong format.")
    57       raise forms.ValidationError("This link name is in wrong format.")
    58     elif not id_user.checkLinkNameForId(link_name):
    58     elif not id_user.isLinkNameAvailableForId(link_name):
    59       raise forms.ValidationError("This link name is already in use.")
    59       raise forms.ValidationError("This link name is already in use.")
    60     return link_name
    60     return link_name
    61 
    61 
    62 
    62 
    63 DEF_USER_PROFILE_EDIT_TMPL = 'soc/user/profile/edit.html'
    63 DEF_USER_PROFILE_EDIT_TMPL = 'soc/user/profile/edit.html'