# HG changeset patch # User Sverre Rabbelier # Date 1232554336 0 # Node ID 30e9629bf59068582e65b99536665fee346209b8 # Parent cbb1d15ffe9138eea1cc662e6fbe2f250ef11f87 Fixed two trivial bugs A "kwargs=kwargs" instead of **kwargs Missing 'and entity' check Patch by: Sverre Rabbelier diff -r cbb1d15ffe91 -r 30e9629bf590 app/soc/views/models/base.py --- a/app/soc/views/models/base.py Wed Jan 21 16:12:01 2009 +0000 +++ b/app/soc/views/models/base.py Wed Jan 21 16:12:16 2009 +0000 @@ -158,7 +158,7 @@ if not params.get('export_content_type'): return self.public(request, access_type, page_name=page_name, - params=params, kwargs=kwargs) + params=params, **kwargs) try: access.checkAccess(access_type, request, rights=params['rights']) @@ -662,7 +662,7 @@ context['entity_type_short'] = params['name_short'] context['entity_type_url'] = params['url_name'] - if params.get('export_content_type'): + if params.get('export_content_type') and entity: context['export_link'] = redirects.getExportRedirect(entity, params) if entity: