summaryrefslogtreecommitdiff
path: root/fml/lib/FML/CGI/TicketSystem.pm
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-02-28 16:17:25 +0000
committerfukachan <fukachan>2001-02-28 16:17:25 +0000
commit2d055536e25c8fe48e6bb0919e5a6b24d8d1c6e0 (patch)
tree5dcd3e1456655058878d8c3983a4e32044e0c3f7 /fml/lib/FML/CGI/TicketSystem.pm
parent392d0cbdb596fe4fd645bed33cd564a5a3d6026f (diff)
downloadfml8-2d055536e25c8fe48e6bb0919e5a6b24d8d1c6e0.tar.gz
fml8-2d055536e25c8fe48e6bb0919e5a6b24d8d1c6e0.tar.bz2
fml8-2d055536e25c8fe48e6bb0919e5a6b24d8d1c6e0.zip
reconstruct ticket summarization a little
fix self->{ _fd } handling
Diffstat (limited to 'fml/lib/FML/CGI/TicketSystem.pm')
-rw-r--r--fml/lib/FML/CGI/TicketSystem.pm13
1 files changed, 12 insertions, 1 deletions
diff --git a/fml/lib/FML/CGI/TicketSystem.pm b/fml/lib/FML/CGI/TicketSystem.pm
index 9e17b847..ee18717d 100644
--- a/fml/lib/FML/CGI/TicketSystem.pm
+++ b/fml/lib/FML/CGI/TicketSystem.pm
@@ -50,18 +50,29 @@ main method.
sub run
{
my ($curproc, $args) = @_;
+
+ use FileHandle;
+ my ($rfd, $wfd) = FileHandle::pipe;
+ $args->{ fd } = $wfd;
my $ticket = $curproc->_load_ticket_model_module($args);
print start_html('ticket system interface'), "\n";
print "<PRE>\n";
+
my $argv = $args->{ ARGV };
$argv->[ 0 ] = 'list';
+
+ # my $tid = $ticket->get_id_list($curproc, $args);
+ # for (@$tid) { print "|| $_\n";}
+
$ticket->show_summary($curproc, $args);
+ close($wfd);
+ while (<$rfd>) { print STDOUT " | $_";}
- print "</PRE>\n";
+ print "</PRE>\n";
print "\n";
print end_html;