Index: /main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
===================================================================
--- /main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py	(revision 7248)
+++ /main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py	(revision 7249)
@@ -405,90 +405,4 @@
     def delLocalRoles(self, **data):
         return del_local_roles(self,3,**data)
-
-# Not used anymore
-class ApplicantLoginPage(WAeUPPage):
-    grok.context(IApplicantsContainer)
-    grok.name('login')
-    grok.require('waeup.Public')
-
-    @property
-    def title(self):
-        return u"Applicant Login: %s" % self.context.title
-
-    @property
-    def label(self):
-        return u"Login for '%s' applicants only" % self.context.title
-
-    pnav = 3
-
-    @property
-    def ac_prefix(self):
-        return self.context.ac_prefix
-
-    def update(self, SUBMIT=None):
-        self.ac_series = self.request.form.get('form.ac_series', None)
-        self.ac_number = self.request.form.get('form.ac_number', None)
-        if SUBMIT is None:
-            return
-        if self.request.principal.id == 'zope.anybody':
-            self.flash('Entered credentials are invalid.')
-            return
-#        if not IApplicantPrincipal.providedBy(self.request.principal):
-#            # Don't care if user is already authenticated as non-applicant
-            return
-
-        # From here we handle an applicant (not an officer browsing)
-        pin = self.request.principal.access_code
-
-        # If application has not yet started,
-        # logout without marking AC as used
-        if not self.context.startdate or self.context.startdate > date.today():
-            self.flash('Application has not yet started.')
-            auth = getUtility(IAuthentication)
-            ILogout(auth).logout(self.request)
-            self.redirect(self.url(self.context, 'login'))
-            return
-
-        # If application has ended and applicant record doesn't exist,
-        # logout without marking AC as used
-        if not pin in self.context.keys() and (not self.context.enddate or
-                                        self.context.enddate < date.today()):
-            self.flash('Application has ended.')
-            auth = getUtility(IAuthentication)
-            ILogout(auth).logout(self.request)
-            self.redirect(self.url(self.context, 'login'))
-            return
-
-        # Mark AC as used (this also fires a pin related transition)
-        if get_access_code(pin).state != USED:
-            comment = u"AC invalidated"
-            # Here we know that the ac is in state initialized so we do not
-            # expect an exception
-            invalidate_accesscode(pin,comment)
-
-        if not pin in self.context.keys():
-            # Create applicant record
-            applicant = Applicant()
-            applicant.access_code = pin
-            self.context[pin] = applicant
-
-        role_manager = IPrincipalRoleManager(self.context[pin])
-        role_manager.assignRoleToPrincipal(
-            'waeup.local.ApplicationOwner', self.request.principal.id)
-
-        # Assign current principal the global Applicant role
-        role_manager = IPrincipalRoleManager(grok.getSite())
-        role_manager.assignRoleToPrincipal(
-            'waeup.Applicant', self.request.principal.id)
-
-        # Mark application as started
-        #if IWorkflowState(self.context[pin]).getState() is INITIALIZED:
-        #    IWorkflowInfo(self.context[pin]).fireTransition('start')
-
-        self.redirect(self.url(self.context[pin], 'edit'))
-        return
-
-    def render(self):
-        return
 
 class ApplicantAddFormPage(WAeUPAddFormPage):
