Changeset 6235


Ignore:
Timestamp:
30 May 2011, 00:28:06 (13 years ago)
Author:
uli
Message:

Remove catches of zope.exception.DuplicationError?. This exception is
not raised any more by standard Grok containers to signal duplicate
keys.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py

    r6234 r6235  
    299299                                  'in the database')
    300300            return
    301         except DuplicationError:
    302             self.status = Invalid('The userid chosen already exists '
    303                                   'in the database')
    304             return
    305301        self.redirect(self.url(self.context))
    306302
     
    960956                                  'in the database')
    961957            return
    962         except DuplicationError:
    963             self.status = Invalid('The name chosen already exists '
    964                                   'in the database')
    965             return
    966958        self.redirect(self.url(self.context, u'@@manage')+'#tab-1')
    967959
     
    11011093            self.context.addDepartment(department)
    11021094        except KeyError:
    1103             self.status = Invalid('The code chosen already exists '
    1104                                   'in the database')
    1105             return
    1106         except DuplicationError:
    11071095            self.status = Invalid('The code chosen already exists '
    11081096                                  'in the database')
     
    15211509                                  'part of this certificate')
    15221510            return
    1523         except DuplicationError:
    1524             self.status = Invalid('The chosen course referrer is already '
    1525                                   'part of this certificate')
    1526             return
    15271511        self.redirect(self.url(self.context, u'@@manage')+'#tab-2')
    15281512
Note: See TracChangeset for help on using the changeset viewer.