Index: /main/waeup.sirp/trunk/src/waeup/sirp/jambtables/util.py
===================================================================
--- /main/waeup.sirp/trunk/src/waeup/sirp/jambtables/util.py	(revision 5449)
+++ /main/waeup.sirp/trunk/src/waeup/sirp/jambtables/util.py	(revision 5450)
@@ -45,2 +45,11 @@
     # XXX: Maybe we have to mark reg_no as used here?
     return (applicant_data, entries[0])
+
+def application_exists(access_code):
+    """Check whether an application for the given access code already exists.
+
+    """
+    site = grok.getSite()
+    if access_code in site['applications'].keys():
+        return True
+    return False
