equal
deleted
inserted
replaced
92 if 'module_name' not in params: |
92 if 'module_name' not in params: |
93 params['module_name'] = params['name_short'].replace(' ', '_').lower() |
93 params['module_name'] = params['name_short'].replace(' ', '_').lower() |
94 |
94 |
95 if 'url_name' not in params: |
95 if 'url_name' not in params: |
96 params['url_name'] = params['module_name'] |
96 params['url_name'] = params['module_name'] |
|
97 |
|
98 if 'document_prefix' not in params: |
|
99 params['document_prefix'] = params['name_short'].lower() |
97 |
100 |
98 # Do not expand edit_redirect to allow it to be overriden without suffix |
101 # Do not expand edit_redirect to allow it to be overriden without suffix |
99 new_params['edit_redirect'] = '/%(url_name)s/edit/%(suffix)s' |
102 new_params['edit_redirect'] = '/%(url_name)s/edit/%(suffix)s' |
100 new_params['missing_redirect'] = '/%(url_name)s/create' % params |
103 new_params['missing_redirect'] = '/%(url_name)s/create' % params |
101 new_params['delete_redirect'] = '/%(url_name)s/list' % params |
104 new_params['delete_redirect'] = '/%(url_name)s/list' % params |