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 #311 (closed enhancement: fixed)

Opened 14 years ago

Last modified 12 years ago

[PATCH] HTTPRedirect + turbogears.url wrapper

Reported by: michele Owned by: anonymous
Priority: normal Milestone: 0.9
Component: TurboGears Version:
Severity: normal Keywords:
Cc:

Description

The patch implements [ttp://groups.google.com/group/turbogears/browse_frm/thread/3431a9cc4c81e0b4/e0fc3d435c3be7b9#e0fc3d435c3be7b9 this]

It's also useful to ensure that people use the right thing (turbogears.url) when doing a redirect.

Dunno if you think it's a good idea or not, in the meanwhile the trivial patch it's there.

Attachments

httpredirect.patch Download (1.4 KB) - added by michele 14 years ago.
The patch

Change History

Changed 14 years ago by michele

The patch

comment:1 Changed 14 years ago by michele

  • Milestone changed from 0.9 to 1.0

comment:2 Changed 14 years ago by kevin

  • Status changed from new to closed
  • Resolution set to fixed

I committed a form of this as turbogears.redirect. It's easier to type. I also made it a function that raises cherrypy.HTTPRedirect. So, it can be called like a function (which some people wanted) or you could stick "raise" in front of it, if it makes you happier :)

This is in [446]

comment:3 Changed 14 years ago by kevin

  • Milestone changed from 1.0 to 0.9
Note: See TracTickets for help on using tickets.