app/soc/views/user/profile.py
changeset 249 325fb70c61a9
parent 245 b14c2c4d3484
child 256 101c586ff5c8
--- a/app/soc/views/user/profile.py	Wed Oct 01 19:17:13 2008 +0000
+++ b/app/soc/views/user/profile.py	Wed Oct 01 19:21:09 2008 +0000
@@ -28,7 +28,7 @@
 from django import newforms as forms
 from django.utils.translation import ugettext_lazy
 
-from soc.logic import common
+from soc.logic import validate
 from soc.logic import out_of_band
 from soc.logic.site import id_user
 from soc.views import simple
@@ -53,7 +53,7 @@
   
   def clean_link_name(self):
     link_name = self.cleaned_data.get('link_name')
-    if not common.isLinkNameFormatValid(link_name):
+    if not validate.isLinkNameFormatValid(link_name):
       raise forms.ValidationError("This link name is in wrong format.")
     elif not id_user.isLinkNameAvailableForId(link_name):
       raise forms.ValidationError("This link name is already in use.")