[Rt-commit] r3804 - in rt/branches/3.5-TESTING: .
lib/RT/Interface/Web sbin
jesse at bestpractical.com
jesse at bestpractical.com
Fri Sep 2 12:40:30 EDT 2005
Author: jesse
Date: Fri Sep 2 12:40:29 2005
New Revision: 3804
Modified:
rt/branches/3.5-TESTING/ (props changed)
rt/branches/3.5-TESTING/lib/RT/Interface/Web/Standalone.pm
rt/branches/3.5-TESTING/sbin/rt-test-dependencies.in
Log:
r13747 at hualien: jesse | 2005-08-24 16:18:51 -0400
r13723 at hualien: jesse | 2005-08-23 17:55:47 -0400
r13701 at hualien (orig r3706): glasser | 2005-08-22 15:55:57 -0400
r36571 at tin-foil: glasser | 2005-07-08 16:53:26 -0400
Fix from Tom Yu; if the Handle will give us a server-side function to lowercase
values, use that.
r13721 at hualien (orig r3707): glasser | 2005-08-22 16:04:25 -0400
r38371 at tin-foil: glasser | 2005-08-02 15:05:25 -0400
RT-Ticket: 6899
RT-Status: resolved
RT-Update: correspond
When limiting based on a whole date, make sure you're not being pushed to
another if you happen to be east of GMT.
Patch by Ruslan Zakirov, problem found by Olivier Horec.
r13722 at hualien (orig r3708): glasser | 2005-08-22 16:05:46 -0400
r40177 at tin-foil: glasser | 2005-08-18 18:49:13 -0400
Updates to the standalone server to not dupe as much code, but may be rolled back if HSSM needs to be.
Modified: rt/branches/3.5-TESTING/lib/RT/Interface/Web/Standalone.pm
==============================================================================
--- rt/branches/3.5-TESTING/lib/RT/Interface/Web/Standalone.pm (original)
+++ rt/branches/3.5-TESTING/lib/RT/Interface/Web/Standalone.pm Fri Sep 2 12:40:29 2005
@@ -5,41 +5,20 @@
use RT::Interface::Web::Handler;
use RT::Interface::Web;
+sub handler_class { "RT::Interface::Web::Handler" }
-sub new_handler {
- my $m;
- $m= RT::Interface::Web::Handler->new(@RT::MasonParameters,
- # Override mason's default output method so
- # we can change the binmode to our encoding if
- # we happen to be handed character data instead
- # of binary data.
- #
- # Cloned from HTML::Mason::CGIHandler
- out_method =>
- sub {
- my $m = HTML::Mason::Request->instance;
- my $r = $m->cgi_request;
- # Send headers if they have not been sent by us or by user.
- # We use instance here because if we store $request we get a
- # circular reference and a big memory leak.
- unless ($m->{'http_header_sent'}) {
- $r->send_http_header();
- }
- {
- if ($r->content_type =~ /charset=([\w-]+)$/ ) {
- my $enc = $1;
- binmode *STDOUT, ":encoding($enc)";
- }
- # We could perhaps install a new, faster out_method here that
- # wouldn't have to keep checking whether headers have been
- # sent and what the $r->method is. That would require
- # additions to the Request interface, though.
- print STDOUT grep {defined} @_;
- }
- }
- );
- return ($m);
-}
+sub setup_escapes {
+ my $self = shift;
+ my $handler = shift;
+
+ # Override HTTP::Server::Simple::Mason's version of this method to do
+ # nothing. (RT::Interface::Web::Handler does this already for us in
+ # NewHandler.)
+}
+
+sub default_mason_config {
+ return @RT::MasonParameters;
+}
sub handle_request {
Modified: rt/branches/3.5-TESTING/sbin/rt-test-dependencies.in
==============================================================================
--- rt/branches/3.5-TESTING/sbin/rt-test-dependencies.in (original)
+++ rt/branches/3.5-TESTING/sbin/rt-test-dependencies.in Fri Sep 2 12:40:29 2005
@@ -199,7 +199,7 @@
Apache::Session 1.53
XML::RSS 1.05
HTTP::Server::Simple 0.07
-HTTP::Server::Simple::Mason 0.07
+HTTP::Server::Simple::Mason 0.09
GD
GD::Graph
GD::Text
More information about the Rt-commit
mailing list