Index: WAeUP_SRP/trunk/skins/waeup_student/apply_pume.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/apply_pume.py	(revision 2109)
+++ WAeUP_SRP/trunk/skins/waeup_student/apply_pume.py	(revision 2111)
@@ -57,5 +57,5 @@
 if slip:
     mode = "view_slip"
-    
+
 res,psm,ds = lt.renderLayout(layout_id= 'application',
                              schema_id= 'application',
@@ -97,13 +97,25 @@
 
 if apply_pume:
-    if not request.has_key('confirm'):
+
+    if submitted:
+        mode = "view"
+        psm = "The form has already been submitted and you are not allowed to resubmit the data!"
+        res,psm_dummy,ds_dummy = lt.renderLayout(layout_id= 'application',
+                                schema_id= 'application',
+                                layout_mode = mode,
+                                context=context,
+                                mapping={},
+                                ob=object,
+                                commit = False,
+                                )
+    elif not request.has_key('confirm'):
         mode = "edit"
-        psm = "Please confirm Passport Photograph"
+        psm = "Please confirm Passport Photograph!"
     else:
         mode = "view"
-        psm = "You successfully applied for PUME"
+        psm = "You successfully applied for PUME!"
         data['application_date'] = current
         data['status'] = "submitted"
-        context.applicants_catalog.modifyRecord(**data) 
+        context.applicants_catalog.modifyRecord(**data)
         res,psm_dummy,ds = lt.renderLayout(layout_id= 'application',
                                 schema_id= 'application',
@@ -113,5 +125,5 @@
                                 ob=object,
                                 commit = False,
-                                )                      
+                                )
 elif create:
     if submitted:
@@ -122,5 +134,5 @@
     #set_trace()
     object['pin'] = str(ds.get('pin'))
-    res,psm,dummy = lt.renderLayout(layout_id= 'application',
+    res,psm,ds_dummy = lt.renderLayout(layout_id= 'application',
                                 schema_id= 'application',
                                 layout_mode = mode,
@@ -131,9 +143,23 @@
                                 )
 elif edit:
-    mode = "edit"
-    psm = "Content changed"
+    if submitted:
+        mode = "view"
+        psm = "The form has already been submitted and you are not allowed to modify the data!"
+        res,psm_dummy,ds_dummy = lt.renderLayout(layout_id= 'application',
+                                schema_id= 'application',
+                                layout_mode = mode,
+                                context=context,
+                                mapping={},
+                                ob=object,
+                                commit = False,
+                                )
+    else:
+        mode = "edit"
+        psm = "Content changed"
+        data['status'] = "edited"
+        context.applicants_catalog.modifyRecord(**data)
 
 
-   
+
 return context.apply_pume_form(rendered = res,
                             psm = psm,
