Changeset 9484ea5 in indico


Ignore:
Timestamp:
04/20/11 15:34:25 (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, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 00b052b1a13a63c5c79db7f3ad310f643651dc50
Children:
8ca7fa
Parents:
8de167
git-author:
Pedro Ferreira <jose.pedro.ferreira@…> (04/20/11 14:48:53)
git-committer:
Pedro Ferreira <jose.pedro.ferreira@…> (04/20/11 15:34:25)
Message:

[FIX] Alternative way of checking deleted

  • As some old events have owner set as None;
  • Future: fix them, as they should be set to None anyway;
File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/user.py

    rc8a3670 r9484ea5  
    16051605 
    16061606            elif objType == "conference": 
     1607                confHolderIdx = MaKaC.conference.ConferenceHolder()._getIdx() 
     1608 
    16071609                for role in links[objType].keys(): 
    16081610                    for conf in links[objType][role]: 
    16091611                        # if the conference has been deleted 
    1610                         if conf.getOwner() == None: 
     1612                        if conf.getId() not in confHolderIdx: 
    16111613                            Logger.get('user.merge').warning( 
    16121614                                "Trying to remove %s from %s (%s) but it seems to have been deleted" % \ 
Note: See TracChangeset for help on using the changeset viewer.