Changeset 55cec9 in indico


Ignore:
Timestamp:
05/17/11 17:21:04 (2 years ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, b8c30da8ebdbdcbd675a873997cc3e95f567de49, 4287315ec967a3da168d83963c14001db8487d53
Children:
de25536
Parents:
961f64
git-author:
Adrian Moennich <jerome.ernst.monnich@…> (04/04/11 11:22:23)
git-committer:
Pedro Ferreira <jose.pedro.ferreira@…> (05/17/11 17:21:04)
Message:

[FIX] Use FVE for "no access to book room" errors

  • so people do not spam indico administrators if they are not permitted to book a room
  • fixes #719
Location:
indico/MaKaC/webinterface/rh
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/webinterface/rh/base.py

    r07fcf9 r55cec9  
    432432 
    433433    def _processFormValuesError(self,e): 
    434         """Treats timing errors occured during the process of a RH. 
     434        """Treats user input related errors occured during the process of a RH. 
    435435        """ 
    436436 
  • indico/MaKaC/webinterface/rh/roomBooking.py

    r21f3fc r55cec9  
    12341234        if self._doProcess: 
    12351235            if not self._candResv.room.isActive and not self._getUser().isAdmin(): 
    1236                 raise MaKaCError( "You are not authorized to book this room." ) 
     1236                raise FormValuesError( "You are not authorized to book this room." ) 
    12371237 
    12381238            if not self._candResv.room.canBook( self._getUser() ) and not self._candResv.room.canPrebook( self._getUser() ): 
    1239                 raise MaKaCError( "You are not authorized to book this room." ) 
     1239                raise FormValuesError( "You are not authorized to book this room." ) 
    12401240 
    12411241            if self._formMode == FormMode.MODIF: 
Note: See TracChangeset for help on using the changeset viewer.