Changeset a829f8 in indico for indico/MaKaC/conference.py


Ignore:
Timestamp:
04/20/12 16:35:39 (14 months ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
Branches:
master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.99, b8c30da8ebdbdcbd675a873997cc3e95f567de49, 4287315ec967a3da168d83963c14001db8487d53
Children:
1d80ec
Parents:
386721
git-author:
Jose Benito <jose.benito.gonzalez@…> (04/20/12 16:04:33)
git-committer:
Jose Benito <jose.benito.gonzalez@…> (04/20/12 16:35:39)
Message:

[IMP] Contrib and Abstract display in general

File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/conference.py

    r3982db ra829f8  
    35633563        return [c for c in self.contributions.values() if not c.getSession()] 
    35643564 
    3565     def getContributionListSortedById(self): 
     3565    def getContributionListSortedById(self, includeWithdrawn=True): 
    35663566        """Returns a list of the conference contribution objects, sorted by their id 
    35673567        """ 
    35683568        contributions = self.contributions.values() 
     3569        if not includeWithdrawn: 
     3570            contributions = filter(lambda c: not isinstance(c.getCurrentStatus(), ContribStatusWithdrawn), contributions) 
    35693571        contributions.sort(key = lambda c: c.getId()) 
    35703572        return contributions 
     
    74787480 
    74797481    def getDirectFullNameNoTitle( self ): 
    7480         res = self.getFamilyName().decode('utf-8').upper().encode('utf-8') 
    7481         if self.getFirstName() != "": 
    7482             if res.strip() != "": 
    7483                 res = "%s %s"%( self.getFirstName(), res ) 
    7484             else: 
    7485                 res = self.getFirstName() 
    7486         return res 
     7482        return ("%s %s"%(self.getFirstName(), self.getFamilyName().upper())).strip() 
    74877483 
    74887484    def getFullName( self ): 
     
    100029998 
    100039999    def getDirectFullNameNoTitle( self ): 
    10004         res = self.getFamilyName().decode('utf-8').upper().encode('utf-8') 
    10005         if self.getFirstName() != "": 
    10006             if res.strip() != "": 
    10007                 res = "%s %s"%( self.getFirstName(), res ) 
    10008             else: 
    10009                 res = self.getFirstName() 
    10010         return res 
     10000        return ("%s %s"%(self.getFirstName(), self.getFamilyName().upper())).strip() 
    1001110001 
    1001210002class SubContribution(CommonObjectBase, Locatable): 
Note: See TracChangeset for help on using the changeset viewer.