Changeset 44d915 in indico


Ignore:
Timestamp:
07/26/11 16:17:58 (22 months 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, d9941f8582b36b24821a11ea5ba16fda6a457fb1
Children:
09370c
Parents:
666b92
Message:

[FIX] iterAllConferences

  • Otherwise only "leaf" categories would be considered;
Location:
indico
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/conference.py

    r593e98 r44d915  
    11651165        """ 
    11661166        return self.conferences 
     1167 
     1168    def iterAllConferences( self): 
     1169        """returns the iterator for conferences in all subcategories. 
     1170        """ 
     1171        for conf in self.conferences: 
     1172            yield conf 
     1173 
     1174        for subcateg in self.subcategories.itervalues(): 
     1175            for conf in subcateg.iterAllConferences(): 
     1176                yield conf 
    11671177 
    11681178    def getAllConferenceList( self ): 
  • indico/ext/livesync/bistate.py

    r593e98 r44d915  
    6060        # categories are never converted to records 
    6161 
    62         for conf in categ.iterConferences(): 
     62        for conf in categ.iterAllConferences(): 
    6363            cls._breakDownConference(conf, chgSet, state) 
    6464            cls._cacheControl(dbi, chgSet) 
Note: See TracChangeset for help on using the changeset viewer.