~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Jeroen Vermeulen
  • Date: 2011-09-19 06:57:55 UTC
  • mto: This revision was merged to the branch mainline in revision 13994.
  • Revision ID: jeroen.vermeulen@canonical.com-20110919065755-lgot1hi4xfqrf492
Lint.  Lots of lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
225
225
        return dt.strftime('%Y-%m-%d')
226
226
 
227
227
    _local_timeformat = '%H:%M %Z on %A, %Y-%m-%d'
 
228
 
228
229
    @property
229
230
    def local_start(self):
230
231
        """The sprint start time, in the local time zone, as text."""
376
377
        self.attendee_ids = set(
377
378
            attendance.attendeeID for attendance in self.context.attendances)
378
379
 
379
 
 
380
380
    @cachedproperty
381
381
    def spec_filter(self):
382
382
        """Return the specification links with PROPOSED status for this
400
400
        if 'SUBMIT_CANCEL' in form:
401
401
            self.status_message = 'Cancelled'
402
402
            self.request.response.redirect(
403
 
                canonical_url(self.context)+'/+specs')
 
403
                canonical_url(self.context) + '/+specs')
404
404
            return
405
405
 
406
406
        if 'SUBMIT_ACCEPT' not in form and 'SUBMIT_DECLINE' not in form:
439
439
        if leftover == 0:
440
440
            # they are all done, so redirect back to the spec listing page
441
441
            self.request.response.redirect(
442
 
                canonical_url(self.context)+'/+specs')
 
442
                canonical_url(self.context) + '/+specs')
443
443
 
444
444
 
445
445
class SprintMeetingExportView(LaunchpadView):
479
479
                continue
480
480
            people[subscription.specificationID][subscription.personID] = \
481
481
                subscription.essential
482
 
        # Spec specials - drafter/assignee. Don't need approver for performance
483
 
        # as specifications() above eager loaded the people, and approvers
484
 
        # don't count as a 'required person'.
 
482
 
 
483
        # Spec specials - drafter/assignee.  Don't need approver for
 
484
        # performance, as specifications() above eager-loaded the
 
485
        # people, and approvers don't count as "required persons."
485
486
        for spec in model_specs:
486
 
            # get the list of attendees that will attend the sprint
 
487
            # Get the list of attendees that will attend the sprint.
487
488
            spec_people = people[spec.id]
488
489
            if spec.assigneeID is not None:
489
490
                spec_people[spec.assigneeID] = True
583
584
                 # We used to store phone, organization, city and
584
585
                 # country, but this was a lie because users could not
585
586
                 # update these fields.
586
 
                 '', # attendance.attendee.phone
587
 
                 '', # attendance.attendee.organization
588
 
                 '', # attendance.attendee.city
589
 
                 '', # country
 
587
                 '',  # attendance.attendee.phone
 
588
                 '',  # attendance.attendee.organization
 
589
                 '',  # attendance.attendee.city
 
590
                 '',  # country
590
591
                 time_zone,
591
592
                 attendance.time_starts.strftime('%Y-%m-%dT%H:%M:%SZ'),
592
593
                 attendance.time_ends.strftime('%Y-%m-%dT%H:%M:%SZ'),