--- a/app/soc/views/site/user/profile.py Fri Oct 03 17:21:41 2008 +0000
+++ b/app/soc/views/site/user/profile.py Fri Oct 03 21:41:12 2008 +0000
@@ -32,8 +32,9 @@
from soc.logic import out_of_band
from soc.logic.site import id_user
from soc.views import simple
+from soc.views import helpers
+import soc.views.helpers.list
from soc.views.helpers import forms_helpers
-from soc.views.helpers import list_helpers
from soc.views.helpers import request_helpers
from soc.views.helpers import response_helpers
from soc.views.user import profile
@@ -129,7 +130,7 @@
lookup_message = ugettext_lazy('User found by email.')
else:
email_error = ugettext_lazy('User with that email not found.')
- range_width = list_helpers.getPreferredListPagination()
+ range_width = helpers.list.getPreferredListPagination()
nearest_user_range_start = id_user.findNearestUsersOffset(
range_width, id=form_id)
@@ -150,11 +151,11 @@
else:
context['linkname_error'] = ugettext_lazy(
'User with that link name not found.')
- range_width = list_helpers.getPreferredListPagination()
+ range_width = helpers.list.getPreferredListPagination()
nearest_user_range_start = id_user.findNearestUsersOffset(
range_width, link_name=linkname)
- if nearest_user_range_start is not None:
+ if nearest_user_range_start is not None:
context['lookup_link'] = './list?offset=%s&limit=%s' % (
nearest_user_range_start, range_width)
# else: form was not valid