From ce355d7354911f2e94a42e3afe50d6074431904d Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sat, 23 Jan 2010 21:02:52 +0000 Subject: [PATCH] zebra bars on table from MongoDB store --- lib/PXElator/httpd.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/PXElator/httpd.pm b/lib/PXElator/httpd.pm index ffc072f..b811617 100644 --- a/lib/PXElator/httpd.pm +++ b/lib/PXElator/httpd.pm @@ -274,6 +274,7 @@ warn "XXX pids = ", dump( $daemons::pids ); print $client ok , qq|| ; + my ( $s1,$s2 ) = ( ' style="background: #eee"', '' ); store::query( sub { my $o = shift; my $p = delete( $o->{package} ); @@ -282,7 +283,8 @@ warn "XXX pids = ", dump( $daemons::pids ); # XXX sigh, dump dies if we don't do this delete $o->{$_} foreach ( grep { ! defined $o->{$_} } keys %$o ); - print $client qq|\n|; + print $client qq|\n|; + ( $s1, $s2 ) = ( $s2, $s1 ); }); print $client qq|
|, join(qq||, map { $p->{$_} } keys %$p ), qq|
|, dump( $o ), qq|
|, join(qq||, map { $p->{$_} } keys %$p ), qq|
|, dump( $o ), qq|
|; -- 2.20.1