Changeset 7ba548 in indico for indico/MaKaC/review.py


Ignore:
Timestamp:
03/31/11 17:49:14 (2 years ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
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:
e3b5ce
Parents:
5caf3d
git-author:
Alexis Castilla Hernandez <alexis.castilla.hernandez@…> (03/22/11 12:46:40)
git-committer:
Jose Benito <jose.benito.gonzalez@…> (03/31/11 17:49:14)
Message:

[FIX] Link of contribution with a removed abstract

  • It is mandatory to remove the contribution before the abstract if the abstract status is W
  • Fixed an error report
File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/review.py

    rfe1e0a r7ba548  
    889889            if isinstance(abstract.getCurrentStatus(), AbstractStatusAccepted): 
    890890                raise MaKaCError( _("Cannot remove an accepted abstract before removing the contribution linked to it")) 
     891            # If it's a withdrawn abstract-->remove abstract from contribution 
     892            if isinstance(abstract.getCurrentStatus(), AbstractStatusWithdrawn) and abstract.getContribution(): 
     893                raise MaKaCError( _("Cannot remove the abstract before removing the contribution linked to it")) 
    891894            for abs in self._abstracts.values(): 
    892895                if abs != abstract: 
Note: See TracChangeset for help on using the changeset viewer.