Add csv export support for Roles. If needed we will add support for extra properties in Mentor, Org Admin and Students models later.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Tue, 24 Mar 2009 16:18:53 +0000
changeset 2000 50bfea33a124
parent 1999 bb3317e4db12
child 2001 decda21f8505
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
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)