--- a/app/soc/views/site/user/profile.py Wed Oct 01 09:43:25 2008 +0000
+++ b/app/soc/views/site/user/profile.py Wed Oct 01 14:23:28 2008 +0000
@@ -28,6 +28,7 @@
from django import newforms as forms
from django.utils.translation import ugettext_lazy
+from soc.logic import common
from soc.logic import out_of_band
from soc.logic.site import id_user
from soc.views import simple
@@ -69,7 +70,7 @@
# link name not supplied (which is OK), so do not try to validate it
return None
- if not id_user.isLinkNameFormatValid(link_name):
+ if not common.isLinkNameFormatValid(link_name):
raise forms.ValidationError('This link name is in wrong format.')
return link_name
@@ -212,7 +213,7 @@
def clean_link_name(self):
link_name = self.cleaned_data.get('link_name')
- if not id_user.isLinkNameFormatValid(link_name):
+ if not common.isLinkNameFormatValid(link_name):
raise forms.ValidationError("This link name is in wrong format.")
else:
key_name = self.data.get('key_name')
@@ -364,7 +365,7 @@
def clean_link_name(self):
link_name = self.cleaned_data.get('link_name')
- if not id_user.isLinkNameFormatValid(link_name):
+ if not common.isLinkNameFormatValid(link_name):
raise forms.ValidationError("This link name is in wrong format.")
else:
if id_user.doesLinkNameExist(link_name):