app/soc/views/helper/params.py
changeset 1295 b3b2025f4ffb
parent 1268 9d092b702f92
child 1307 091a21cf3627
equal deleted inserted replaced
1294:359987b7027d 1295:b3b2025f4ffb
    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 
    97 
    98   if 'document_prefix' not in params:
    98   if 'document_prefix' not in params:
    99     params['document_prefix'] = params['name_short'].lower()
    99     params['document_prefix'] = params['url_name']
   100 
   100 
   101   # 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
   102   new_params['edit_redirect'] = '/%(url_name)s/edit/%(suffix)s'
   102   new_params['edit_redirect'] = '/%(url_name)s/edit/%(suffix)s'
   103   new_params['missing_redirect'] = '/%(url_name)s/create' % params
   103   new_params['missing_redirect'] = '/%(url_name)s/create' % params
   104   new_params['delete_redirect'] = '/%(url_name)s/list' % params
   104   new_params['delete_redirect'] = '/%(url_name)s/list' % params