Index: /WAeUP_SRP/trunk/Widgets.py
===================================================================
--- /WAeUP_SRP/trunk/Widgets.py	(revision 4120)
+++ /WAeUP_SRP/trunk/Widgets.py	(revision 4121)
@@ -1646,5 +1646,7 @@
             s_logger.info('%s entered invalid PIN with length %d' % (member_id,len(n)))
         elif self.reference == "":
+            # see fceokene #147
             ref = n
+            #ref = pin
         else:
             ref = datastructure[self.reference]
@@ -2021,6 +2023,4 @@
             pict.write(fileupload.read())
             pict.close()
-
-
         return True
 
Index: /WAeUP_SRP/trunk/skins/waeup_fceokene/config_form.pt
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_fceokene/config_form.pt	(revision 4121)
+++ /WAeUP_SRP/trunk/skins/waeup_fceokene/config_form.pt	(revision 4121)
@@ -0,0 +1,141 @@
+<metal:html>
+
+<span tal:condition="not: context/isSectionOfficer">
+  <span tal:content="here/illegal_view" />
+</span>
+
+<metal:block tal:condition="context/isSectionOfficer">
+<metal:body use-macro="here/main_template/macros/master">
+<metal:header fill-slot="header"
+              tal:define="mtool here/portal_membership;
+                          checkPerm nocall:mtool/checkPermission;">
+  <h3>Configure Portal</h3>
+</metal:header>
+<metal:main fill-slot="main">
+  <form action="" method="post"
+        tal:attributes="action string:${base_url}reconfig"
+        tal:define="pprops nocall:here/portal_properties;
+                    mtool nocall:here/portal_membership;
+                    rtool nocall:here/portal_registration">
+    <br />
+
+    <table id="portalConfiguration" summary="Portal properties form">
+      <tr>
+        <th>
+          <label>
+            Institution Title
+          </label>
+        </th>
+        <td>
+          <input name="institution_title" id="institution_title" value=""
+                 tal:attributes="value pprops/institution_title" />
+        </td>
+      </tr>
+      <tr>
+        <th>
+          <label for="email_from_name"
+                 i18n:translate="label_admin_name">
+            Administrator Name
+          </label>
+        </th>
+        <td>
+          <input name="email_from_name" id="email_from_name" value=""
+                 tal:attributes="value pprops/email_from_name" />
+        </td>
+      </tr>
+      <tr>
+        <th>
+          <label for="email_from_address"
+                 i18n:translate="label_admin_email">
+            Administrator Email
+          </label>
+        </th>
+        <td>
+          <input name="email_from_address" id="email_from_address" value=""
+                 tal:attributes="value pprops/email_from_address" />
+        </td>
+      </tr>
+      <tr>
+        <th>
+          <label for="smtp_server"
+                 i18n:translate="label_smtp_server">
+            SMTP Server
+          </label>
+        </th>
+        <td>
+          <input name="smtp_server" id="smtp_server" value=""
+                 tal:attributes="value pprops/smtp_server" />
+        </td>
+      </tr>
+      <tr>
+        <th>
+          <label for="portal_title"
+                 i18n:translate="label_portal_title">
+            Portal title
+          </label>
+        </th>
+        <td>
+          <input name="title" id="portal_title" value=""
+                 tal:attributes="value pprops/title" />
+        </td>
+      </tr>
+      <tr>
+        <th>
+          <label>
+            Current Session
+          </label>
+        </th>
+        <td>
+          <input name="session" id="portal_session" value=""
+                 tal:attributes="value pprops/session" />
+        </td>
+      </tr>      
+      <tr>
+        <th>
+          <label>
+            Static Directory on Server
+          </label>
+        </th>
+        <td>
+          <input name="static_dir" id="static_dir" value=""
+                 tal:attributes="value pprops/static_dir" />
+        </td>
+      </tr>        
+      <tr>
+        <th>
+          <label for="portal_description"
+                 i18n:translate="label_portal_description">
+            Portal description
+          </label>
+        </th>
+        <td>
+          <textarea name="description" id="portal_description"
+                cols="40" rows="4" style="width: 100%"
+                tal:content="pprops/description">
+          </textarea>
+        </td>
+      </tr>
+      <tr>
+        <th>
+          <label>
+            Deadline Pre-NCE Application:
+          </label>
+        </th>
+        <td>
+          <input type="text" name="date1" id="date1" value="" size="30"
+                 tal:attributes="value pprops/date1" />
+        </td>
+      </tr>     
+
+    </table>
+    <p>
+      <button type="submit" class="standalone"  i18n:translate="button_change">Change</button>
+      <button type="button" class="standalone" onclick="history.back()"
+              i18n:translate="button_cancel">Cancel</button>
+    </p>
+  </form>
+
+</metal:main>
+</metal:body>
+</metal:block>
+</metal:html>
Index: /WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py	(revision 4120)
+++ /WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py	(revision 4121)
@@ -64,5 +64,5 @@
 deaddates['pume'] = DateTime.DateTime(pprops.date1)
 deaddates['pde'] = DateTime.DateTime(pprops.date2)
-deaddates['prence'] = DateTime.DateTime('2007/12/4 23:59')
+deaddates['prence'] = DateTime.DateTime(pprops.date1)
 deaddates['pce'] = DateTime.DateTime('2007/08/12 23:59')
 deaddates['cest'] = DateTime.DateTime(pprops.date3)
@@ -131,7 +131,7 @@
 for co_name,co_dict in configuration:
     info[co_name] = co_dict[screening_type]
-#set_trace()
 # the reg_no is a hidden field in the form
 reg_no = request.form.get('reg_no','').upper()
+
 if not reg_no:
     # validate form if no reg_no specified
@@ -159,8 +159,11 @@
                                            )
     if without_reg_no:
+        ## see fceokene #147 
         reg_no = ds.get('pin_n','').upper()
+        #reg_no = ds.get('pin_p') + ds.get('pin_b') + ds.get('pin_n')
     else:
         reg_no = ds.get('reg_no')
 info['reg_no'] = reg_no
+
 brains = context.applicants_catalog(reg_no = reg_no.upper())
 if len(brains) == 1:
