Closed Bug 781851 Opened 12 years ago Closed 11 years ago

[shipping] clean up Milestone.status and redirect shortcut use

Categories

(Webtools Graveyard :: Elmo, defect, P5)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: peterbe, Assigned: peterbe)

References

Details

Attachments

(1 file)

The views code in shipping uses http.HttpRedirect() instead of the redirect() shortcut.

Instead of things like status=Milestone.OPEN it does things like status=1.
Depends on: 762532
Note-to-self: This might also mean changing some templates where the numbers are used. Instead, do something like this::

  return render('template', {"Milestone": Milestone, ...})

So you can do this in the templates::

  {% if something.status == Milestone.OPEN %}

instead of 

  {% if something.status == 1 %}


milestone.html, index.html, about-milestone.html, etc.
Assignee: nobody → peterbe
Pro tip from Pike::

 find apps/shipping/templates/shipping/ -type f|xargs grep \\.status
Priority: -- → P5
Attachment #700030 - Flags: review?(l10n)
Attachment #700030 - Flags: review?(l10n) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.1
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: