# HG changeset patch # User Pawel Solyga # Date 1237911533 0 # Node ID 50bfea33a124ee0110e30cb1c97ef66eacef7ff2 # Parent bb3317e4db12468ad8b4877033b0fcb85a111cb2 Add csv export support for Roles. If needed we will add support for extra properties in Mentor, Org Admin and Students models later. Patch by: Pawel Solyga Reviewed by: to-be-reviewed diff -r bb3317e4db12 -r 50bfea33a124 app/soc/views/models/role.py --- a/app/soc/views/models/role.py Tue Mar 24 08:46:18 2009 +0000 +++ b/app/soc/views/models/role.py Tue Mar 24 16:18:53 2009 +0000 @@ -156,6 +156,14 @@ } new_params['extra_dynaexclude'] = ['user', 'status', 'agreed_to_tos_on'] + + new_params['list_key_order'] = [ + 'link_id', 'scope_path', 'given_name', 'surname', 'name_on_documents', + 'email', 'home_page','blog','res_street', 'res_city', + 'res_state', 'res_country', 'res_postalcode', 'phone', + 'ship_street', 'ship_city', 'ship_state', 'ship_country', + 'ship_postalcode', 'birth_date', 'tshirt_size', + 'tshirt_style', 'status'] params = dicts.merge(params, new_params, sub_merge=True)