diff -r a666374587df -r 8cf30dee8048 app/soc/views/models/document.py --- a/app/soc/views/models/document.py Sat Feb 14 20:22:17 2009 +0000 +++ b/app/soc/views/models/document.py Sat Feb 14 20:22:50 2009 +0000 @@ -76,21 +76,12 @@ new_params['export_content_type'] = 'text/text' - names = [i for i in document_logic.getKeyFieldNames() if i != 'link_id'] - create_pattern = params_helper.getPattern( - names, linkable.SCOPE_PATH_ARG_PATTERN) - - new_params['extra_django_patterns'] = [ - (r'^document/(?Pcreate)/%s$' % create_pattern, - 'soc.views.models.%(module_name)s.create', 'Create %(name_short)s'), - (r'^document/(?Plist)/%s$' % create_pattern, - 'soc.views.models.%(module_name)s.list', 'List %(name_plural)s') - ] - new_params['no_create_raw'] = True new_params['no_create_with_scope'] = True new_params['no_create_with_key_fields'] = True new_params['no_list_raw'] = True + new_params['sans_link_id_create'] = True + new_params['sans_link_id_list'] = True new_params['create_extra_dynafields'] = { 'content': forms.fields.CharField(