Index: /main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py
===================================================================
--- /main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py	(revision 10337)
+++ /main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py	(revision 10338)
@@ -22,4 +22,19 @@
 from kofacustom.nigeria.applicants.browser import NigeriaApplicantEditFormPage
 
+PASTQ_ALL = ['ADT','EPCS','ESM','HEK','VTE']
+
+PASTQ_AL = ['ENL','FAA','FOL','HIS','LAL',
+            'PHL','THR','BUL','JIL','LAW','PPL','PUL'] + PASTQ_ALL
+
+PASTQ_BS = ['ANT','ANY','CHH','COH','HAE','MED','MEH','PHS','SUR',
+            'PCG','PCH','PCO', 'PCT','PHA','PHM','PMB','ANA','MBC',
+            'MLS','NSC','PSY','DPV','ODR','OSP','PER', 'RES','AEB',
+            'BCH','BOT','CED','EVL','MCB','OPT','PBB','SLT','ZOO',
+            'AEE','ANS', 'CRS','FIS','FOW','SOS'] + PASTQ_ALL
+
+PASTQ_EPS = ['CHE','CVE','DMIC','EEE','MCH','PEE','PRE','CHM',
+             'CSC','GLY','MTH','PHY'] + PASTQ_ALL
+
+PASTQ_MSS = ['ACC','BNK','BUS','ECO','GEO','POL','SAA','SWK'] + PASTQ_ALL
 
 class CustomApplicantRegistrationPage(ApplicantRegistrationPage):
@@ -38,2 +53,29 @@
     """
     grok.template('applicanteditpage')
+
+    def _show_pastq(self):
+        return self.target.startswith('putme') \
+               and self.context.state == 'paid' \
+               and getattr(self.context, 'course1') is not None
+
+    @property
+    def show_pastq_al(self):
+        return self._show_pastq() \
+               and self.context.course1.__parent__.__parent__.code in PASTQ_AL
+
+    @property
+    def show_pastq_bs(self):
+        return self._show_pastq() \
+               and self.context.course1.__parent__.__parent__.code in PASTQ_BS
+
+    @property
+    def show_pastq_eps(self):
+        return self._show_pastq() \
+               and self.context.course1.__parent__.__parent__.code in PASTQ_EPS
+
+    @property
+    def show_pastq_mss(self):
+        return self._show_pastq() \
+               and self.context.course1.__parent__.__parent__.code in PASTQ_MSS
+
+
Index: /main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser_templates/applicanteditpage.pt
===================================================================
--- /main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser_templates/applicanteditpage.pt	(revision 10337)
+++ /main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser_templates/applicanteditpage.pt	(revision 10338)
@@ -19,13 +19,39 @@
   </div>
 
-  <div tal:condition="python: view.target.startswith('putme') and
-                              view.context.__parent__.year == 2014 and
-                              view.context.state == 'paid'">
-    <br />
-    <a href="https://uniben.waeup.org/downloads/PastExercises.pdf"
+  <h4 tal:condition="view/show_pastq_al">
+    Download past questions
+    <a href="https://uniben.waeup.org/downloads/ArtsAndLaw.pdf"
         i18n:translate="">
-      Download past questions to exercise.
-    </a><br /><br />
-  </div>
+      'Arts And Law'
+    </a>
+     to exercise.
+  </h4>
+
+  <h4 tal:condition="view/show_pastq_bs">
+    Download past questions
+    <a href="https://uniben.waeup.org/downloads/BiologicalSciences.pdf"
+        i18n:translate="">
+      'Biological Sciences'
+    </a>
+     to exercise.
+  </h4>
+
+  <h4 tal:condition="view/show_pastq_eps">
+    Download past questions
+    <a href="https://uniben.waeup.org/downloads/EngineeringAndPhysicalSciences.pdf"
+        i18n:translate="">
+      'Engineering And Physical Sciences'
+    </a>
+     to exercise.
+  </h4>
+
+  <h4 tal:condition="view/show_pastq_mss">
+    Download past questions
+    <a href="https://uniben.waeup.org/downloads/ManagementAndSocialSciences.pdf"
+        i18n:translate="">
+      'Management And Social Sciences'
+    </a>
+     to exercise.
+  </h4>
 
   <table class="form-table">
