Changeset 1d57031 in indico
- Timestamp:
- 03/16/11 17:25:07 (2 years ago)
- Branches:
- master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
- Children:
- 9364f6
- Parents:
- bb29fc
- Files:
-
- 2 edited
-
bin/migration/migrate_0.97_0.98.py (modified) (1 diff)
-
indico/MaKaC/conference.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bin/migration/migrate_0.97_0.98.py
re9ba8c r1d57031 231 231 categ.conferences = OOTreeSet(categ.conferences.values()) 232 232 if len(categ.conferences) != len(categ.conferencesBackup): 233 print categ.getId()233 print "Problem migrating conf dict to tree set: %s" % categ.getId() 234 234 235 235 -
indico/MaKaC/conference.py
r078f40 r1d57031 1130 1130 sortType=3--> Alphabetically - Reversed 1131 1131 """ 1132 res = sorted(self.conferences )1132 res = sorted(self.conferences, cmp=Conference._cmpByDate) 1133 1133 if sortType==2: 1134 1134 res.sort(Conference._cmpTitle) … … 2068 2068 return "<Conference %s@%s>" % (self.getId(), hex(id(self))) 2069 2069 2070 def __cmp__(self, toCmp): 2070 @staticmethod 2071 def _cmpByDate(self, toCmp): 2071 2072 if not isinstance(toCmp, Conference): 2072 2073 return cmp(hash(self), hash(toCmp)) … … 2075 2076 return res 2076 2077 else: 2077 return cmp(self.getId(), toCmp.getId()) 2078 return cmp(self, toCmp) 2079 2080 def __cmp__(self, toCmp): 2081 if not isinstance(toCmp, Conference): 2082 return cmp(hash(self), hash(toCmp)) 2083 return cmp(self.getId(), toCmp.getId()) 2078 2084 2079 2085 def __eq__(self, toCmp):
Note: See TracChangeset
for help on using the changeset viewer.
