Changeset a829f8 in indico for indico/MaKaC/conference.py
- Timestamp:
- 04/20/12 16:35:39 (14 months ago)
- 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)
- File:
-
- 1 edited
-
indico/MaKaC/conference.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/conference.py
r3982db ra829f8 3563 3563 return [c for c in self.contributions.values() if not c.getSession()] 3564 3564 3565 def getContributionListSortedById(self ):3565 def getContributionListSortedById(self, includeWithdrawn=True): 3566 3566 """Returns a list of the conference contribution objects, sorted by their id 3567 3567 """ 3568 3568 contributions = self.contributions.values() 3569 if not includeWithdrawn: 3570 contributions = filter(lambda c: not isinstance(c.getCurrentStatus(), ContribStatusWithdrawn), contributions) 3569 3571 contributions.sort(key = lambda c: c.getId()) 3570 3572 return contributions … … 7478 7480 7479 7481 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() 7487 7483 7488 7484 def getFullName( self ): … … 10002 9998 10003 9999 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() 10011 10001 10012 10002 class SubContribution(CommonObjectBase, Locatable):
Note: See TracChangeset
for help on using the changeset viewer.
