diff -r 9acf4fe1b9bb -r 7f285e96cb17 app/soc/views/models/group.py --- a/app/soc/views/models/group.py Sat Mar 07 18:16:54 2009 +0000 +++ b/app/soc/views/models/group.py Sat Mar 07 19:17:02 2009 +0000 @@ -27,6 +27,7 @@ from django import http from django.utils.translation import ugettext +from soc.logic import cleaning from soc.logic import dicts from soc.logic.models import user as user_logic from soc.views.helper import decorators @@ -89,6 +90,18 @@ new_params['list_row'] = 'soc/group/list/row.html' new_params['list_heading'] = 'soc/group/list/heading.html' + new_params['create_extra_dynaproperties'] = { + 'clean_contact_street': cleaning.clean_ascii_only('contact_street'), + 'clean_contact_city': cleaning.clean_ascii_only('contact_city'), + 'clean_contact_state': cleaning.clean_ascii_only('contact_state'), + 'clean_contact_postalcode': cleaning.clean_ascii_only('contact_postalcode'), + 'clean_shipping_street': cleaning.clean_ascii_only('shipping_street'), + 'clean_shipping_city': cleaning.clean_ascii_only('shipping_city'), + 'clean_shipping_state': cleaning.clean_ascii_only('shipping_state'), + 'clean_shipping_postalcode': cleaning.clean_ascii_only('shipping_postalcode'), + } + + new_params['role_views'] = {} params = dicts.merge(params, new_params, sub_merge=True)