~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/blueprints/model/sprint.py

  • Committer: j.c.sackett
  • Date: 2011-05-19 15:07:29 UTC
  • mto: This revision was merged to the branch mainline in revision 13104.
  • Revision ID: jonathan.sackett@canonical.com-20110519150729-8b1nhilti4hjin0l
Added nofollow,noindex to search page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    IHasIcon,
31
31
    IHasLogo,
32
32
    IHasMugshot,
 
33
    ILaunchpadCelebrities,
33
34
    )
34
 
from lp.app.interfaces.launchpad import ILaunchpadCelebrities
35
35
from lp.blueprints.enums import (
36
36
    SpecificationFilter,
37
37
    SpecificationImplementationStatus,
309
309
        result = list(Store.of(self).find(
310
310
            SprintAttendance,
311
311
            SprintAttendance.sprint == self))
312
 
        people = [a.attendeeID for a in result]
 
312
        people = [a.attendee_id for a in result]
313
313
        # In order to populate the person cache we need to materialize the
314
314
        # result set.  Listification should do.
315
315
        list(getUtility(IPersonSet).getPrecachedPersonsFromIDs(
316
316
                people, need_validity=True))
317
 
        return sorted(result, key=lambda a: a.attendee.displayname.lower())
 
317
        return sorted(result, key=lambda a: a.attendee.name)
318
318
 
319
319
    # linking to specifications
320
320
    def linkSpecification(self, spec):
415
415
        return Sprint.select(
416
416
            query, clauseTables=tables, orderBy='-time_starts',
417
417
            distinct=True)
 
418