Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1677 (closed defect: fixed)

Opened 11 years ago

Last modified 10 years ago

Update middleware config to use newer error handling stuff from pylons

Reported by: mramm Owned by: mramm
Priority: highest Milestone: 2.0b2
Component: TurboGears Version: trunk
Severity: normal Keywords: sprint
Cc:

Description

We should create a error document handling page which links here:

 http://wiki.pylonshq.com/display/pylonsdocs/Error+Documents

and provides a super-quick summary.

Change History

comment:1 Changed 11 years ago by mramm

  • Version changed from 1.0.4b3 to trunk
  • Milestone changed from 1.0.4 to 2.0

comment:2 Changed 11 years ago by andrew.basson

  • Owner changed from anonymous to andrew.basson
  • Status changed from new to assigned

comment:3 Changed 10 years ago by mramm

  • Status changed from assigned to new
  • Owner changed from andrew.basson to mramm
  • Milestone changed from 2.0 to 2.0b1

comment:4 Changed 10 years ago by mramm

  • Keywords sprint added
  • Owner changed from mramm to anybody

comment:5 Changed 10 years ago by mramm

  • Priority changed from normal to highest

comment:6 Changed 10 years ago by jorge.vargas

  • Status changed from new to assigned
  • Owner changed from anybody to jorge.vargas

comment:7 Changed 10 years ago by jorge.vargas

according to benbangert, none of this is still valid in 0.9.7 it was rewritten as pylons.middleware.StatusCodeRedirect? so I'll document that.

comment:8 Changed 10 years ago by jorge.vargas

  • Status changed from assigned to new

I think we should close this ticket and supersede it by a general ticket on synchronizing with pylons' quickstart, with the new StatusCodeRedirect? the documentation is unnecessary as it's very trivial.

I just don't think I'm qualified for that sync. As I'm not certain exactly which parts as supposed to be migrated.

comment:9 Changed 10 years ago by mramm

  • Summary changed from Link up error document handling documentation to Update middleware config to use newer error handling stuff from pylons

comment:10 Changed 10 years ago by mramm

  • Owner changed from jorge.vargas to mramm

We are using StatusCodeRedirect? for some months.

But something is wierd as the pylons controller in error.py is not being called as expected.

Besides which, we should probably use a more TG looking error controller.

comment:11 Changed 10 years ago by mramm

  • Status changed from new to assigned
  • Milestone changed from 2.0b1 to 2.0b2

comment:12 Changed 10 years ago by mramm

I have updated quickstart to create an error controller and mount it via object dispatch rather than routes.

Styling this should now be doable via standard TG mechanisms with no pylons specific controller stuff required.

comment:13 Changed 10 years ago by mramm

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.