--- 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'}