119 new_params['django_patterns'] = None |
119 new_params['django_patterns'] = None |
120 new_params['extra_django_patterns'] = [] |
120 new_params['extra_django_patterns'] = [] |
121 new_params['django_patterns_defaults'] = [ |
121 new_params['django_patterns_defaults'] = [ |
122 (r'^%(url_name)s/(?P<access_type>show)/%(key_fields)s$', |
122 (r'^%(url_name)s/(?P<access_type>show)/%(key_fields)s$', |
123 'soc.views.models.%(module_name)s.public', 'Show %(name_short)s'), |
123 'soc.views.models.%(module_name)s.public', 'Show %(name_short)s'), |
|
124 (r'^%(url_name)s/(?P<access_type>export)/%(key_fields)s$', |
|
125 'soc.views.models.%(module_name)s.export', 'Show %(name_short)s'), |
124 (r'^%(url_name)s/(?P<access_type>create)$', |
126 (r'^%(url_name)s/(?P<access_type>create)$', |
125 'soc.views.models.%(module_name)s.create', 'Create %(name_short)s'), |
127 'soc.views.models.%(module_name)s.create', 'Create %(name_short)s'), |
126 (r'^%(url_name)s/(?P<access_type>create)/%(scope)s$', |
128 (r'^%(url_name)s/(?P<access_type>create)/%(scope)s$', |
127 'soc.views.models.%(module_name)s.create', 'Create %(name_short)s'), |
129 'soc.views.models.%(module_name)s.create', 'Create %(name_short)s'), |
128 (r'^%(url_name)s/(?P<access_type>delete)/%(key_fields)s$', |
130 (r'^%(url_name)s/(?P<access_type>delete)/%(key_fields)s$', |
137 new_params['django_patterns_defaults'] += [ |
139 new_params['django_patterns_defaults'] += [ |
138 (r'^%(url_name)s/(?P<access_type>create)/%(key_fields)s$', |
140 (r'^%(url_name)s/(?P<access_type>create)/%(key_fields)s$', |
139 'soc.views.models.%(module_name)s.create', 'Create %(name_short)s')] |
141 'soc.views.models.%(module_name)s.create', 'Create %(name_short)s')] |
140 |
142 |
141 new_params['public_template'] = 'soc/%(module_name)s/public.html' % params |
143 new_params['public_template'] = 'soc/%(module_name)s/public.html' % params |
|
144 new_params['export_template'] = 'soc/%(module_name)s/export.html' % params |
142 new_params['create_template'] = 'soc/models/edit.html' |
145 new_params['create_template'] = 'soc/models/edit.html' |
143 new_params['edit_template'] = 'soc/models/edit.html' |
146 new_params['edit_template'] = 'soc/models/edit.html' |
144 new_params['list_template'] = 'soc/models/list.html' |
147 new_params['list_template'] = 'soc/models/list.html' |
145 new_params['invite_template'] = 'soc/models/invite.html' |
148 new_params['invite_template'] = 'soc/models/invite.html' |
146 |
149 |
|
150 new_params['export_content_type'] = None |
|
151 |
147 new_params['error_public'] = 'soc/%(module_name)s/error.html' % params |
152 new_params['error_public'] = 'soc/%(module_name)s/error.html' % params |
148 new_params['error_edit'] = 'soc/%(module_name)s/error.html' % params |
153 new_params['error_export'] = new_params['error_public'] |
|
154 new_params['error_edit'] = new_params['error_public'] |
149 |
155 |
150 new_params['list_main'] = 'soc/list/main.html' |
156 new_params['list_main'] = 'soc/list/main.html' |
151 new_params['list_pagination'] = 'soc/list/pagination.html' |
157 new_params['list_pagination'] = 'soc/list/pagination.html' |
152 new_params['list_row'] = 'soc/%(module_name)s/list/row.html' % params |
158 new_params['list_row'] = 'soc/%(module_name)s/list/row.html' % params |
153 new_params['list_heading'] = 'soc/%(module_name)s/list/heading.html' % params |
159 new_params['list_heading'] = 'soc/%(module_name)s/list/heading.html' % params |