Addressed comments by Pawel
authorSverre Rabbelier <srabbelier@gmail.com>
Mon, 09 Mar 2009 00:01:21 +0000
changeset 1763 6bd59cad39a5
parent 1762 c47b9deb22ac
child 1764 1c56cbbf3a33
Addressed comments by Pawel Patch by: Sverre Rabbelier
app/soc/views/models/mentor.py
app/soc/views/models/org_admin.py
app/soc/views/models/org_app.py
--- a/app/soc/views/models/mentor.py	Mon Mar 09 00:00:41 2009 +0000
+++ b/app/soc/views/models/mentor.py	Mon Mar 09 00:01:21 2009 +0000
@@ -205,9 +205,6 @@
 
     agreement = entity.scope.mentor_agreement
 
-    if not (entity and agreement):
-      return
-
     content = agreement.content
     params = {'url_name': 'document'}
 
--- a/app/soc/views/models/org_admin.py	Mon Mar 09 00:00:41 2009 +0000
+++ b/app/soc/views/models/org_admin.py	Mon Mar 09 00:01:21 2009 +0000
@@ -216,9 +216,6 @@
 
     agreement = entity.scope.org_admin_agreement
 
-    if not (entity and agreement):
-      return
-
     content = agreement.content
     params = {'url_name': 'document'}
 
--- a/app/soc/views/models/org_app.py	Mon Mar 09 00:00:41 2009 +0000
+++ b/app/soc/views/models/org_app.py	Mon Mar 09 00:01:21 2009 +0000
@@ -168,10 +168,10 @@
 
     entity = program_logic.logic.getFromKeyName(scope_path)
 
-    agreement = entity.org_admin_agreement
+    if not (entity and entity.org_admin_agreement):
+      return
 
-    if not (entity and agreement):
-      return
+    agreement = entity.org_admin_agreement
 
     content = agreement.content
     params = {'url_name': 'document'}