Fixed two trivial bugs
authorSverre Rabbelier <srabbelier@gmail.com>
Wed, 21 Jan 2009 16:12:16 +0000
changeset 874 30e9629bf590
parent 873 cbb1d15ffe91
child 875 03c674f510d8
Fixed two trivial bugs A "kwargs=kwargs" instead of **kwargs Missing 'and entity' check Patch by: Sverre Rabbelier
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: