diff -r 7c58f5cdd5b8 -r 1ddf04976bee app/soc/views/models/document.py --- a/app/soc/views/models/document.py Sat Feb 14 15:56:46 2009 +0000 +++ b/app/soc/views/models/document.py Sat Feb 14 15:57:14 2009 +0000 @@ -76,11 +76,15 @@ 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) + 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')] + '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_with_scope'] = True new_params['no_create_with_key_fields'] = True @@ -112,6 +116,14 @@ super(View, self).__init__(params=params) + def list(self, request, access_type, page_name=None, + params=None, filter=None, **kwargs): + """See base.View.list. + """ + + return super(View, self).list(request, access_type, page_name=page_name, + params=params, filter=kwargs) + def _editPost(self, request, entity, fields): """See base.View._editPost(). """