You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(28) |
Nov
(58) |
Dec
(85) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(125) |
Feb
(222) |
Mar
(274) |
Apr
(51) |
May
(22) |
Jun
(50) |
Jul
(15) |
Aug
(33) |
Sep
(11) |
Oct
(29) |
Nov
(17) |
Dec
(1) |
2003 |
Jan
(100) |
Feb
(21) |
Mar
(7) |
Apr
(45) |
May
|
Jun
(43) |
Jul
(27) |
Aug
(24) |
Sep
|
Oct
|
Nov
|
Dec
|
2004 |
Jan
(1) |
Feb
|
Mar
(13) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(7) |
Sep
|
Oct
|
Nov
|
Dec
(4) |
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
From: Rob H. <for...@us...> - 2002-02-22 08:30:02
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv17026/templates Modified Files: upload_file.html Log Message: upload_file.html needs to store the repo_name so we can figure out where we are Index: upload_file.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/upload_file.html,v retrieving revision 1.12 retrieving revision 1.13 diff -U2 -r1.12 -r1.13 --- upload_file.html 20 Feb 2002 04:26:36 -0000 1.12 +++ upload_file.html 22 Feb 2002 08:29:58 -0000 1.13 @@ -5,6 +5,7 @@ <input name="action" value="browse_file" type="hidden" /> <input name="file_command" value="upload" type="hidden" /> -<input name="location" value="<TMPL_VAR NAME=LOCATION>" type="hidden" /> +<input name="repo_name" value="<TMPL_VAR NAME=REPO_NAME>" type="hidden" /> <input name="module_name" value="<TMPL_VAR NAME=MODULE_NAME>" type="hidden" /> +<input name="location" value="<TMPL_VAR NAME=LOCATION>" type="hidden" /> <input name="filename" value="<TMPL_VAR NAME=FILENAME>" type="hidden" /> Enter a file to upload:<br /> |
From: Rob H. <for...@us...> - 2002-02-22 08:22:43
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv15629/templates Modified Files: current_location.html Log Message: oops, should not close HTML form in this file Index: current_location.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/current_location.html,v retrieving revision 1.2 retrieving revision 1.3 diff -U2 -r1.2 -r1.3 --- current_location.html 22 Feb 2002 08:10:54 -0000 1.2 +++ current_location.html 22 Feb 2002 08:22:40 -0000 1.3 @@ -1,14 +1,13 @@ <tr> <td align="left" valign="middle"> - <table border="0"> - <tr> - Current location: - <TMPL_LOOP NAME=LOCATION_LOOP> - <a href="<TMPL_VAR NAME=PROGNAME>?action=browse_module&module_name=<TMPL_VAR NAME=MODULE_NAME>&repo_name=<TMPL_VAR NAME=REPO_NAME>&location=<TMPL_VAR NAME=LOCATION_FULL>"><TMPL_VAR NAME=LOCATION_LINK></a> - </TMPL_LOOP> - </td> - </tr> - </table> - </form> + <table border="0"> + <tr> + Current location: + <TMPL_LOOP NAME=LOCATION_LOOP> + <a href="<TMPL_VAR NAME=PROGNAME>?action=browse_module&module_name=<TMPL_VAR NAME=MODULE_NAME>&repo_name=<TMPL_VAR NAME=REPO_NAME>&location=<TMPL_VAR NAME=LOCATION_FULL>"><TMPL_VAR NAME=LOCATION_LINK></a> + </TMPL_LOOP> + </td> + </tr> + </table> </td> </tr> |
From: Rob H. <for...@us...> - 2002-02-22 08:10:57
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv13594/templates Modified Files: current_location.html Log Message: current_location is now a public method of Browse Index: current_location.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/current_location.html,v retrieving revision 1.1 retrieving revision 1.2 diff -U2 -r1.1 -r1.2 --- current_location.html 22 Feb 2002 03:38:08 -0000 1.1 +++ current_location.html 22 Feb 2002 08:10:54 -0000 1.2 @@ -3,5 +3,8 @@ <table border="0"> <tr> - Current location: <TMPL_VAR NAME=CURRENT_LOCATION> + Current location: + <TMPL_LOOP NAME=LOCATION_LOOP> + <a href="<TMPL_VAR NAME=PROGNAME>?action=browse_module&module_name=<TMPL_VAR NAME=MODULE_NAME>&repo_name=<TMPL_VAR NAME=REPO_NAME>&location=<TMPL_VAR NAME=LOCATION_FULL>"><TMPL_VAR NAME=LOCATION_LINK></a> + </TMPL_LOOP> </td> </tr> |
From: Rob H. <for...@us...> - 2002-02-22 08:10:57
|
Update of /cvsroot/sandweb/sandweb/lib/SandWeb In directory usw-pr-cvs1:/tmp/cvs-serv13594/lib/SandWeb Modified Files: Browse.pm Log Message: current_location is now a public method of Browse Index: Browse.pm =================================================================== RCS file: /cvsroot/sandweb/sandweb/lib/SandWeb/Browse.pm,v retrieving revision 1.57 retrieving revision 1.58 diff -U2 -r1.57 -r1.58 --- Browse.pm 22 Feb 2002 04:48:23 -0000 1.57 +++ Browse.pm 22 Feb 2002 08:10:54 -0000 1.58 @@ -40,5 +40,4 @@ my $location = $args{'location'}; my $progname = $args{'progname'}; - my $repo_type = $args{'repo_type'}; my $repo_name = $args{'repo_name'}; @@ -152,5 +151,5 @@ - return $content->output; + return $content->output(); } @@ -161,11 +160,13 @@ my @vcs_commands; my @loop_data; - my $vcs_commands = $self->_get_vcs_commands(); - my $template_dir = $self->_get_template_dir(); - my $module_name = $self->_get_module_name(); + my $location = $args{'location'}; my $progname = $args{'progname'}; my $repo_name = $args{'repo_name'}; + my $vcs_commands = $self->_get_vcs_commands(); + my $template_dir = $self->_get_template_dir(); + my $module_name = $self->_get_module_name(); + my $content = HTML::Template->new( filename => "$template_dir/tool_bar.html" ); @@ -190,57 +191,78 @@ ); - return $content->output; + return $content->output(); } -# -#sub get_current_location { -#my $count; -# if ($location eq '/') { -# $location = ''; -# } -# -# if ($location) { -# # Security check, no "/.." or "../" allowed mister! -# $location =~ s:/\.\.::g; -# $location =~ s:\.\./::g; -# } else { -# $location = ''; -# } -# my @location_link; -# push (@location_link, split( /\//, $location )); -# my @loop_data = (); -# $count = 0; -# my @location_full = (); -# -# unless ($count) { -# my %row_data; -# $row_data{LOCATION_LINK} = "[$module_name]"; -# $row_data{LOCATION_FULL} = "/"; -# $row_data{MODULE_NAME} = "$module_name"; -# $row_data{REPO_NAME} = "$repo_name"; -# $row_data{PROGNAME} = "$progname"; -# push (@loop_data, \%row_data); -# $count++; -# } -# -# foreach my $link (@location_link) { -# my %row_data; -# -# if ( $link ) { -# $row_data{LOCATION_LINK} = "[$link]"; -# } -# my $data = join("/", @location_full); -# -# if ($location_link[$count]) { -# push (@location_full, "/$location_link[$count]"); -# } -# $row_data{LOCATION_FULL} = "$data"; -# $row_data{MODULE_NAME} = "$module_name"; -# $row_data{REPO_NAME} = "$repo_name"; -# $row_data{PROGNAME} = "$progname"; -# push (@loop_data, \%row_data); -# $count++; -# } -#} + +sub get_current_location { + my $self = shift; + my %args = @_; + + my $location = $args{'location'}; + my $progname = $args{'progname'}; + my $repo_name = $args{'repo_name'}; + + my $username = $self->_get_username(); + my $users_dir = $self->_get_users_dir(); + my $module_name = $self->_get_module_name(); + my $template_dir = $self->_get_template_dir(); + my $log = $self->_get_log_obj; + + my $count; + if ($location eq '/') { + $location = ''; + } + + if ($location) { + # Security check, no "/.." or "../" allowed mister! + $location =~ s:/\.\.::g; + $location =~ s:\.\./::g; + } else { + $location = ''; + } + my @location_link; + push (@location_link, split( /\//, $location )); + my @loop_data = (); + $count = 0; + my @location_full = (); + + unless ($count) { + my %row_data; + $row_data{LOCATION_LINK} = "[$module_name]"; + $row_data{LOCATION_FULL} = "/"; + $row_data{PROGNAME} = "$progname"; + $row_data{MODULE_NAME} = "$module_name"; + $row_data{REPO_NAME} = "$repo_name"; + push (@loop_data, \%row_data); + $count++; + } + + foreach my $link (@location_link) { + my %row_data; + if ( $link ) { + $row_data{LOCATION_LINK} = "[$link]"; + } + + my $data = join("/", @location_full); + if ($location_link[$count]) { + push (@location_full, "/$location_link[$count]"); + } + $row_data{LOCATION_FULL} = "$data"; + $row_data{PROGNAME} = "$progname"; + $row_data{PROGNAME} = "$progname"; + $row_data{MODULE_NAME} = "$module_name"; + $row_data{REPO_NAME} = "$repo_name"; + push (@loop_data, \%row_data); + $count++; + } + + my $content = HTML::Template->new( filename => "$template_dir/current_location.html" ); + + $content->param( + LOCATION_LOOP => \@loop_data, + ); + + return $content->output(); +} sub _get_username { |
From: Rob H. <for...@us...> - 2002-02-22 08:10:57
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv13594/bin Modified Files: sandweb.cgi Log Message: current_location is now a public method of Browse Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.198 retrieving revision 1.199 diff -U2 -r1.198 -r1.199 --- sandweb.cgi 22 Feb 2002 04:48:23 -0000 1.198 +++ sandweb.cgi 22 Feb 2002 08:10:54 -0000 1.199 @@ -495,4 +495,10 @@ 'repo_name' => $repo_name, ); + + my $current_location = $browse->get_current_location( + 'location' => $location, + 'progname' => $progname, + 'repo_name' => $repo_name, + ); my $browser = $browse->get_browser( @@ -503,5 +509,5 @@ ); - my $content = "$toolbar $browser"; + my $content = "$toolbar $current_location $browser"; print CGI::header( -cookie => $ck_auth ); |
From: Rob H. <for...@us...> - 2002-02-22 04:50:05
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv11449/templates Modified Files: browse_module.html Log Message: ok, geT_tool_bar is completely seperate from get_browser. cool! Index: browse_module.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/browse_module.html,v retrieving revision 1.18 retrieving revision 1.19 diff -U2 -r1.18 -r1.19 --- browse_module.html 22 Feb 2002 03:47:19 -0000 1.18 +++ browse_module.html 22 Feb 2002 04:48:23 -0000 1.19 @@ -11,8 +11,4 @@ </script> - <form method="get" submit="<TMPL_VAR NAME=PROGNAME>" name="browse"> - <input type="hidden" name="module_name" value="<TMPL_VAR NAME=MODULE_NAME>" /> - <input type="hidden" name="repo_name" value="<TMPL_VAR NAME=REPO_NAME>" /> - <input type="hidden" name="location" value="<TMPL_VAR NAME=LOCATION>" /> <tr> <td width="100%"> |
From: Rob H. <for...@us...> - 2002-02-22 04:50:05
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv11449/bin Modified Files: sandweb.cgi Log Message: ok, geT_tool_bar is completely seperate from get_browser. cool! Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.197 retrieving revision 1.198 diff -U2 -r1.197 -r1.198 --- sandweb.cgi 22 Feb 2002 03:59:29 -0000 1.197 +++ sandweb.cgi 22 Feb 2002 04:48:23 -0000 1.198 @@ -493,5 +493,4 @@ 'location' => $location, 'progname' => $progname, - 'repo_type' => $repo_type, 'repo_name' => $repo_name, ); @@ -1139,5 +1138,4 @@ sub browse_vcs_commit { my %args = @_; - my $ck_auth = $args{'ck_auth'}; @@ -1162,4 +1160,5 @@ my $repo_name = $args{'repo_name'}; my %return; + $log->debug("module_name: $module_name"); |
From: Rob H. <for...@us...> - 2002-02-22 04:50:05
|
Update of /cvsroot/sandweb/sandweb/lib/SandWeb In directory usw-pr-cvs1:/tmp/cvs-serv11449/lib/SandWeb Modified Files: Browse.pm Log Message: ok, geT_tool_bar is completely seperate from get_browser. cool! Index: Browse.pm =================================================================== RCS file: /cvsroot/sandweb/sandweb/lib/SandWeb/Browse.pm,v retrieving revision 1.56 retrieving revision 1.57 diff -U2 -r1.56 -r1.57 --- Browse.pm 22 Feb 2002 03:59:29 -0000 1.56 +++ Browse.pm 22 Feb 2002 04:48:23 -0000 1.57 @@ -60,7 +60,4 @@ $content->param( PROGNAME => $progname, - MODULE_NAME => $module_name, - LOCATION => $location, - REPO_NAME => $repo_name, ); @@ -160,4 +157,5 @@ sub get_tool_bar { my $self = shift; + my %args = @_; my @vcs_commands; @@ -165,4 +163,8 @@ my $vcs_commands = $self->_get_vcs_commands(); my $template_dir = $self->_get_template_dir(); + my $module_name = $self->_get_module_name(); + my $location = $args{'location'}; + my $progname = $args{'progname'}; + my $repo_name = $args{'repo_name'}; my $content = HTML::Template->new( filename => "$template_dir/tool_bar.html" ); @@ -180,5 +182,11 @@ } - $content->param( VCS_CMD_LOOP => \@loop_data ); + $content->param( + VCS_CMD_LOOP => \@loop_data, + PROGNAME => $progname, + LOCATION => $location, + MODULE_NAME => $module_name, + REPO_NAME => $repo_name, + ); return $content->output; |
From: Rob H. <for...@us...> - 2002-02-22 03:59:32
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv1713/bin Modified Files: sandweb.cgi Log Message: wow, implementing toolbar worked first time i tried. kick ass. note that this is still using the HTML::Template system, but once I get this all in place I'm going to rip it out and make the CGI deal with browse's output. Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.196 retrieving revision 1.197 diff -U2 -r1.196 -r1.197 --- sandweb.cgi 22 Feb 2002 03:49:27 -0000 1.196 +++ sandweb.cgi 22 Feb 2002 03:59:29 -0000 1.197 @@ -465,9 +465,11 @@ ); + my @vcs_commands = $repository->get_vcs_commands(); $log->debug("creating Browse object"); my $browse = SandWeb::Browse->new( 'username' => $username, - 'template_dir' => $template_dir, 'module_name' => $module_name, + 'template_dir' => $template_dir, + 'vcs_commands' => \@vcs_commands, 'users_dir' => $users_dir, 'log_obj' => $log, @@ -482,5 +484,4 @@ $username = $auth->get_username(); - my @vcs_commands = $repository->get_vcs_commands(); my @file_commands = $file->get_file_commands(); $repo_type = $repository->get_repo_type(); @@ -488,11 +489,20 @@ # use the browse object to show user's sandbox - my $content = $browse->get_browser( + + my $toolbar = $browse->get_tool_bar( 'location' => $location, 'progname' => $progname, - 'vcs_commands' => \@vcs_commands, 'repo_type' => $repo_type, 'repo_name' => $repo_name, ); + + my $browser = $browse->get_browser( + 'location' => $location, + 'progname' => $progname, + 'repo_type' => $repo_type, + 'repo_name' => $repo_name, + ); + + my $content = "$toolbar $browser"; print CGI::header( -cookie => $ck_auth ); |
From: Rob H. <for...@us...> - 2002-02-22 03:59:32
|
Update of /cvsroot/sandweb/sandweb/lib/SandWeb In directory usw-pr-cvs1:/tmp/cvs-serv1713/lib/SandWeb Modified Files: Browse.pm Log Message: wow, implementing toolbar worked first time i tried. kick ass. note that this is still using the HTML::Template system, but once I get this all in place I'm going to rip it out and make the CGI deal with browse's output. Index: Browse.pm =================================================================== RCS file: /cvsroot/sandweb/sandweb/lib/SandWeb/Browse.pm,v retrieving revision 1.55 retrieving revision 1.56 diff -U2 -r1.55 -r1.56 --- Browse.pm 22 Feb 2002 03:49:27 -0000 1.55 +++ Browse.pm 22 Feb 2002 03:59:29 -0000 1.56 @@ -15,14 +15,16 @@ my %args = @_; my $username = $args{'username'}; - my $template_dir = $args{'template_dir'}; my $module_name = $args{'module_name'}; my $users_dir = $args{'users_dir'}; + my $template_dir = $args{'template_dir'}; + my $vcs_commands = $args{'vcs_commands'}; my $log_obj = $args{'log_obj'}; my $self = bless { 'username' => $username, - 'template_dir' => $template_dir, 'module_name' => $module_name, 'users_dir' => $users_dir, + 'template_dir' => $template_dir, + 'vcs_commands' => $vcs_commands, 'log_obj' => $log_obj, }, $class; @@ -60,5 +62,4 @@ MODULE_NAME => $module_name, LOCATION => $location, -# LOCATION_LOOP => \@loop_data, REPO_NAME => $repo_name, ); @@ -157,18 +158,31 @@ } -#sub get_tool_bar { -# my @vcs_commands; -# my $count = 0; -# while ( $args{'vcs_commands'}->[$count] ) { -# push (@vcs_commands, $args{'vcs_commands'}->[$count]); -# $count++; -# $content->param( VCS_CMD_LOOP => \@loop_data ); -# } -# foreach my $vcs_command (@vcs_commands) { -# my %row_data; -# $row_data{VCS_CMD} = "$vcs_command"; -# push (@loop_data, \%row_data); -# } -#} +sub get_tool_bar { + my $self = shift; + + my @vcs_commands; + my @loop_data; + my $vcs_commands = $self->_get_vcs_commands(); + my $template_dir = $self->_get_template_dir(); + + my $content = HTML::Template->new( filename => "$template_dir/tool_bar.html" ); + + my $count = 0; + while ( $vcs_commands->[$count] ) { + push (@vcs_commands, $vcs_commands->[$count]); + $count++; + } + + foreach my $vcs_command (@vcs_commands) { + my %row_data; + $row_data{VCS_CMD} = "$vcs_command"; + push (@loop_data, \%row_data); + } + + $content->param( VCS_CMD_LOOP => \@loop_data ); + + return $content->output; +} + # #sub get_current_location { @@ -241,9 +255,13 @@ } +sub _get_vcs_commands { + my $self = shift; + return $self->{'vcs_commands'}; +} + sub _get_log_obj { my $self = shift; return $self->{'log_obj'}; } - 1; |
From: Rob H. <for...@us...> - 2002-02-22 03:49:30
|
Update of /cvsroot/sandweb/sandweb/lib/SandWeb In directory usw-pr-cvs1:/tmp/cvs-serv32441/lib/SandWeb Modified Files: Browse.pm Log Message: changed method name from "browse" to "get_browser" Index: Browse.pm =================================================================== RCS file: /cvsroot/sandweb/sandweb/lib/SandWeb/Browse.pm,v retrieving revision 1.54 retrieving revision 1.55 diff -U2 -r1.54 -r1.55 --- Browse.pm 22 Feb 2002 03:47:19 -0000 1.54 +++ Browse.pm 22 Feb 2002 03:49:27 -0000 1.55 @@ -32,5 +32,5 @@ -sub browse { +sub get_browser { my $self = shift; my %args = @_; |
From: Rob H. <for...@us...> - 2002-02-22 03:49:30
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv32441/bin Modified Files: sandweb.cgi Log Message: changed method name from "browse" to "get_browser" Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.195 retrieving revision 1.196 diff -U2 -r1.195 -r1.196 --- sandweb.cgi 21 Feb 2002 05:52:43 -0000 1.195 +++ sandweb.cgi 22 Feb 2002 03:49:27 -0000 1.196 @@ -488,5 +488,5 @@ # use the browse object to show user's sandbox - my $content = $browse->browse( + my $content = $browse->get_browser( 'location' => $location, 'progname' => $progname, |
From: Rob H. <for...@us...> - 2002-02-22 03:47:23
|
Update of /cvsroot/sandweb/sandweb/lib/SandWeb In directory usw-pr-cvs1:/tmp/cvs-serv32043/lib/SandWeb Modified Files: Browse.pm Log Message: starting moving non-browse code out of browse method. This checkin disables the toolbar and the current location bar. sorry! Index: Browse.pm =================================================================== RCS file: /cvsroot/sandweb/sandweb/lib/SandWeb/Browse.pm,v retrieving revision 1.53 retrieving revision 1.54 diff -U2 -r1.53 -r1.54 --- Browse.pm 20 Feb 2002 04:46:55 -0000 1.53 +++ Browse.pm 22 Feb 2002 03:47:19 -0000 1.54 @@ -38,10 +38,4 @@ my $location = $args{'location'}; my $progname = $args{'progname'}; - my @vcs_commands; - my $count = 0; - while ( $args{'vcs_commands'}->[$count] ) { - push (@vcs_commands, $args{'vcs_commands'}->[$count]); - $count++; - } my $repo_type = $args{'repo_type'}; @@ -61,50 +55,4 @@ my $content = HTML::Template->new( filename => "$template_dir/browse_module.html" ); - if ($location eq '/') { - $location = ''; - } - - if ($location) { - # Security check, no "/.." or "../" allowed mister! - $location =~ s:/\.\.::g; - $location =~ s:\.\./::g; - } else { - $location = ''; - } - my @location_link; - push (@location_link, split( /\//, $location )); - my @loop_data = (); - $count = 0; - my @location_full = (); - - unless ($count) { - my %row_data; - $row_data{LOCATION_LINK} = "[$module_name]"; - $row_data{LOCATION_FULL} = "/"; - $row_data{MODULE_NAME} = "$module_name"; - $row_data{REPO_NAME} = "$repo_name"; - $row_data{PROGNAME} = "$progname"; - push (@loop_data, \%row_data); - $count++; - } - - foreach my $link (@location_link) { - my %row_data; - - if ( $link ) { - $row_data{LOCATION_LINK} = "[$link]"; - } - my $data = join("/", @location_full); - - if ($location_link[$count]) { - push (@location_full, "/$location_link[$count]"); - } - $row_data{LOCATION_FULL} = "$data"; - $row_data{MODULE_NAME} = "$module_name"; - $row_data{REPO_NAME} = "$repo_name"; - $row_data{PROGNAME} = "$progname"; - push (@loop_data, \%row_data); - $count++; - } $content->param( @@ -112,10 +60,10 @@ MODULE_NAME => $module_name, LOCATION => $location, - LOCATION_LOOP => \@loop_data, +# LOCATION_LOOP => \@loop_data, REPO_NAME => $repo_name, ); my @return = (); - @loop_data = (); + my @loop_data = (); if ( opendir(SANDBOX, "$sandbox/$location") ) { @@ -205,14 +153,73 @@ @loop_data = (); - foreach my $vcs_command (@vcs_commands) { - my %row_data; - $row_data{VCS_CMD} = "$vcs_command"; - push (@loop_data, \%row_data); - } - $content->param( VCS_CMD_LOOP => \@loop_data ); return $content->output; } +#sub get_tool_bar { +# my @vcs_commands; +# my $count = 0; +# while ( $args{'vcs_commands'}->[$count] ) { +# push (@vcs_commands, $args{'vcs_commands'}->[$count]); +# $count++; +# $content->param( VCS_CMD_LOOP => \@loop_data ); +# } +# foreach my $vcs_command (@vcs_commands) { +# my %row_data; +# $row_data{VCS_CMD} = "$vcs_command"; +# push (@loop_data, \%row_data); +# } +#} +# +#sub get_current_location { +#my $count; +# if ($location eq '/') { +# $location = ''; +# } +# +# if ($location) { +# # Security check, no "/.." or "../" allowed mister! +# $location =~ s:/\.\.::g; +# $location =~ s:\.\./::g; +# } else { +# $location = ''; +# } +# my @location_link; +# push (@location_link, split( /\//, $location )); +# my @loop_data = (); +# $count = 0; +# my @location_full = (); +# +# unless ($count) { +# my %row_data; +# $row_data{LOCATION_LINK} = "[$module_name]"; +# $row_data{LOCATION_FULL} = "/"; +# $row_data{MODULE_NAME} = "$module_name"; +# $row_data{REPO_NAME} = "$repo_name"; +# $row_data{PROGNAME} = "$progname"; +# push (@loop_data, \%row_data); +# $count++; +# } +# +# foreach my $link (@location_link) { +# my %row_data; +# +# if ( $link ) { +# $row_data{LOCATION_LINK} = "[$link]"; +# } +# my $data = join("/", @location_full); +# +# if ($location_link[$count]) { +# push (@location_full, "/$location_link[$count]"); +# } +# $row_data{LOCATION_FULL} = "$data"; +# $row_data{MODULE_NAME} = "$module_name"; +# $row_data{REPO_NAME} = "$repo_name"; +# $row_data{PROGNAME} = "$progname"; +# push (@loop_data, \%row_data); +# $count++; +# } +#} + sub _get_username { my $self = shift; @@ -238,4 +245,5 @@ return $self->{'log_obj'}; } + 1; |
From: Rob H. <for...@us...> - 2002-02-22 03:47:23
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv32043/templates Modified Files: browse_module.html Log Message: starting moving non-browse code out of browse method. This checkin disables the toolbar and the current location bar. sorry! Index: browse_module.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/browse_module.html,v retrieving revision 1.17 retrieving revision 1.18 diff -U2 -r1.17 -r1.18 --- browse_module.html 21 Feb 2002 06:27:04 -0000 1.17 +++ browse_module.html 22 Feb 2002 03:47:19 -0000 1.18 @@ -15,54 +15,4 @@ <input type="hidden" name="repo_name" value="<TMPL_VAR NAME=REPO_NAME>" /> <input type="hidden" name="location" value="<TMPL_VAR NAME=LOCATION>" /> - - <tr> - <td width="100%" align="center" valign="center"> - <table border="0" width="100%" cellspacing="2" cellpadding="2"> - <tr> - <td width="100%" align="center" colspan="3"> - <input type="submit" name="action_file" value="create_file" accesskey="i" /> - <input type="submit" name="action_file" value="create_folder" accesskey="o" /> - <input type="submit" name="action_file" value="delete" accesskey="d" /> - <input type="submit" name="action_file" value="rename" accesskey="r" /> - <input type="submit" name="action_file" value="upload" accesskey="u" /> - </td> - </tr> - <tr> - <td width="25%" align="center"> - <br /> - </td> - <td width="50%" align="center" valign="center" bgcolor="#CCCCCC"> - <select name="vcs_command"> - <option selected>VCS Command</option> - <TMPL_LOOP NAME="VCS_CMD_LOOP"> - <option><TMPL_VAR NAME="VCS_CMD"></option> - </TMPL_LOOP> - </select> -     - <input type="submit" name="action" value="browse_vcs" /> - </td> - <td width="25%" align="center"> - <br /> - </td> - </tr> - </table> - </td> - </tr> - <tr> - <td width="100%"> - <br /> - </td> - </tr> - <tr> - <td width="100%" bgcolor="#CCDDCC"> - - <font color="#555555"> - <b>Current location :</b> - <TMPL_LOOP NAME="LOCATION_LOOP"> - <a href="<TMPL_VAR NAME=PROGNAME>?action=browse_module&location=<TMPL_VAR NAME=LOCATION_FULL>&module_name=<TMPL_VAR NAME=MODULE_NAME>&repo_name=<TMPL_VAR NAME=REPO_NAME>"><TMPL_VAR NAME=LOCATION_LINK></a> - </TMPL_LOOP> - </font> - </td> - </tr> <tr> <td width="100%"> |
From: Rob H. <for...@us...> - 2002-02-22 03:38:13
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv30294 Added Files: current_location.html tool_bar.html Log Message: these are basically stubs for the tool_bar/current_location split in browse --- NEW FILE --- <tr> <td align="left" valign="middle"> <table border="0"> <tr> Current location: <TMPL_VAR NAME=CURRENT_LOCATION> </td> </tr> </table> </form> </td> </tr> --- NEW FILE --- <form method="get" submit="<TMPL_VAR NAME=PROGNAME>" name="browse"> <input type="hidden" name="module_name" value="<TMPL_VAR NAME=MODULE_NAME>" /> <input type="hidden" name="repo_name" value="<TMPL_VAR NAME=REPO_NAME>" /> <input type="hidden" name="location" value="<TMPL_VAR NAME=LOCATION>" /> <tr> <td width="100%" align="center" valign="center"> <table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td width="100%" align="center" colspan="3"> <input type="submit" name="action_file" value="create_file" accesskey="i" /> <input type="submit" name="action_file" value="create_folder" accesskey="o" /> <input type="submit" name="action_file" value="delete" accesskey="d" /> <input type="submit" name="action_file" value="rename" accesskey="r" /> <input type="submit" name="action_file" value="upload" accesskey="u" /> </td> </tr> <tr> <td width="25%" align="center"> <br /> </td> <td width="50%" align="center" valign="center" bgcolor="#CCCCCC"> <select name="vcs_command"> <option selected>VCS Command</option> <TMPL_LOOP NAME="VCS_CMD_LOOP"> <option><TMPL_VAR NAME="VCS_CMD"></option> </TMPL_LOOP> </select>     <input type="submit" name="action" value="browse_vcs" /> </td> <td width="25%" align="center"> <br /> </td> </tr> </table> </td> </tr> <tr> <td width="100%"> <br /> </td> </tr> |
From: Nick J. <nje...@us...> - 2002-02-21 06:27:07
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv5190/templates Modified Files: browse_module.html Log Message: * more minor UI updates Index: browse_module.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/browse_module.html,v retrieving revision 1.16 retrieving revision 1.17 diff -U2 -r1.16 -r1.17 --- browse_module.html 19 Feb 2002 09:09:14 -0000 1.16 +++ browse_module.html 21 Feb 2002 06:27:04 -0000 1.17 @@ -20,4 +20,5 @@ <table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> + <td width="100%" align="center" colspan="3"> <input type="submit" name="action_file" value="create_file" accesskey="i" /> <input type="submit" name="action_file" value="create_folder" accesskey="o" /> @@ -25,9 +26,13 @@ <input type="submit" name="action_file" value="rename" accesskey="r" /> <input type="submit" name="action_file" value="upload" accesskey="u" /> + </td> </tr> <tr> - <td width="50%" align="center" bgcolor="#AAAAAA"> + <td width="25%" align="center"> + <br /> + </td> + <td width="50%" align="center" valign="center" bgcolor="#CCCCCC"> <select name="vcs_command"> - <option></option> + <option selected>VCS Command</option> <TMPL_LOOP NAME="VCS_CMD_LOOP"> <option><TMPL_VAR NAME="VCS_CMD"></option> @@ -37,4 +42,7 @@ <input type="submit" name="action" value="browse_vcs" /> </td> + <td width="25%" align="center"> + <br /> + </td> </tr> </table> @@ -47,8 +55,8 @@ </tr> <tr> - <td width="100%" bgcolor="#CCCCCC"> + <td width="100%" bgcolor="#CCDDCC"> - <font color="#22DD22"> - Current location : + <font color="#555555"> + <b>Current location :</b> <TMPL_LOOP NAME="LOCATION_LOOP"> <a href="<TMPL_VAR NAME=PROGNAME>?action=browse_module&location=<TMPL_VAR NAME=LOCATION_FULL>&module_name=<TMPL_VAR NAME=MODULE_NAME>&repo_name=<TMPL_VAR NAME=REPO_NAME>"><TMPL_VAR NAME=LOCATION_LINK></a> @@ -62,7 +70,8 @@ <tr> <td width="60%" align="left" colspan="3"> - <a href="javascript:selectAll(document.browse.filename)">Select All</a> - | - <a href="javascript:clearAll(document.browse.filename)">Clear All<a/> + + [<a href="javascript:selectAll(document.browse.filename)">select all</a>] + + [<a href="javascript:clearAll(document.browse.filename)">clear all<a/>] </td> </tr> |
From: Nick J. <nje...@us...> - 2002-02-21 05:56:31
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv31088/templates Modified Files: view_file.html Log Message: * minor UI enhancements Index: view_file.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/view_file.html,v retrieving revision 1.33 retrieving revision 1.34 diff -U2 -r1.33 -r1.34 --- view_file.html 20 Feb 2002 04:26:36 -0000 1.33 +++ view_file.html 21 Feb 2002 05:56:27 -0000 1.34 @@ -6,7 +6,7 @@ <td width="100%" align="right"> <input type="hidden" name="action" value="browse_file" /> - <a href="<TMPL_VAR NAME=PROGNAME>/<TMPL_VAR NAME=FILENAME>?action=browse_file&file_command=download&location=<TMPL_VAR NAME=LOCATION>&filename=<TMPL_VAR NAME=FILENAME>&module_name=<TMPL_VAR NAME=MODULE_NAME>">download</a> + [<a href="<TMPL_VAR NAME=PROGNAME>/<TMPL_VAR NAME=FILENAME>?action=browse_file&file_command=download&location=<TMPL_VAR NAME=LOCATION>&filename=<TMPL_VAR NAME=FILENAME>&module_name=<TMPL_VAR NAME=MODULE_NAME>">download</a>] <TMPL_IF NAME=EDIT> - <a href="<TMPL_VAR NAME=PROGNAME>/<TMPL_VAR NAME=FILENAME>?action=browse_file&file_command=edit&location=<TMPL_VAR NAME=LOCATION>&filename=<TMPL_VAR NAME=FILENAME>&module_name=<TMPL_VAR NAME=MODULE_NAME>">edit</a> + [<a href="<TMPL_VAR NAME=PROGNAME>/<TMPL_VAR NAME=FILENAME>?action=browse_file&file_command=edit&location=<TMPL_VAR NAME=LOCATION>&filename=<TMPL_VAR NAME=FILENAME>&module_name=<TMPL_VAR NAME=MODULE_NAME>">edit</a>] </TMPL_IF> <TMPL_VAR NAME=ERROR> |
From: Nick J. <nje...@us...> - 2002-02-21 05:52:46
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv30183 Modified Files: sandweb.cgi Log Message: * removed uneeded reference to non-existant data. Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.194 retrieving revision 1.195 diff -U2 -r1.194 -r1.195 --- sandweb.cgi 20 Feb 2002 05:32:08 -0000 1.194 +++ sandweb.cgi 21 Feb 2002 05:52:43 -0000 1.195 @@ -433,5 +433,4 @@ my $module_name = $args{'module_name'} || ''; my $users_dir = $config->{'paths'}->{'users_dir'} || ''; - my $sandbox = $user->{'paths'}->{'users_dir'} || ''; my $repo_name = $args{'repo_name'}; @@ -464,5 +463,4 @@ 'root' => "$vcsroot", 'repo_type' => $repo_type, - 'sandbox' => $sandbox, ); |
From: Nick J. <nje...@us...> - 2002-02-21 05:43:18
|
Update of /cvsroot/sandweb/sandweb/lib/SandWeb In directory usw-pr-cvs1:/tmp/cvs-serv28671/lib/SandWeb Modified Files: UI.pm Log Message: * added footer to display on all menus. worked into the framework.html and the UI.pm Index: UI.pm =================================================================== RCS file: /cvsroot/sandweb/sandweb/lib/SandWeb/UI.pm,v retrieving revision 1.24 retrieving revision 1.25 diff -U2 -r1.24 -r1.25 --- UI.pm 4 Dec 2001 00:46:32 -0000 1.24 +++ UI.pm 21 Feb 2002 05:43:14 -0000 1.25 @@ -26,4 +26,5 @@ my $menu_bar = $self->get_menu_bar(); my $log = $self->_logobj(); + my $footer = '<font size="2"<a href="http://sandweb.sf.net">SandWeb</a> - Web Basaed Version Control Management System.</font>'; my @debug_msgs = (); @@ -47,5 +48,5 @@ MENU_TITLE => $args{'MENU_TITLE'}, SUBMENU_TITLE => $args{'SUBMENU_TITLE'}, - FOOTER => $args{'FOOTER'}, + FOOTER => $footer, CONTENT => $args{'CONTENT'}, MENU_BAR => $menu_bar, |
From: Nick J. <nje...@us...> - 2002-02-21 05:43:18
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv28671/templates Modified Files: framework.html Log Message: * added footer to display on all menus. worked into the framework.html and the UI.pm Index: framework.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/framework.html,v retrieving revision 1.15 retrieving revision 1.16 diff -U2 -r1.15 -r1.16 --- framework.html 11 Feb 2002 01:34:38 -0000 1.15 +++ framework.html 21 Feb 2002 05:43:14 -0000 1.16 @@ -18,5 +18,5 @@ <table border="0" align="center" width="100%" cellpadding="4" cellspacing="0"> <tr> - <td width="100%" align="center"> + <td width="100%" align="center" colspan="3"> <table width="100%" border="0"> @@ -59,5 +59,5 @@ </tr> <tr> - <td width="100%" align="center"> + <td width="100%" align="center" colspan="3"> <table width="100%" border="0" align="center" valign="top"> @@ -78,13 +78,28 @@ </table> - </td> + </td> </tr> - <tr> - <td width="100%" align="left"> - <TMPL_VAR NAME=FOOTER><br /> + <tr> + <td width="25%"> + <br /> + </td> + <td width="50%" align="center"> + <br /> + <br /> + <table border="1" width="100%" align="center"> + <tr> + <td width="100%" align="center" bgcolor="#CCDDCC"> + <TMPL_VAR NAME=FOOTER><br /> + </td> + </tr> + </table> + <br /> </td> + <td width="25%"> + <br /> + </td> </tr> <tr> - </table> + </table> <font color="#336633"> <TMPL_LOOP NAME="DEBUG"> |
From: Rob H. <for...@us...> - 2002-02-20 05:32:11
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv28090/templates Modified Files: create_file.html create_folder.html Log Message: fixing fallout from the multi-repo changes Index: create_file.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/create_file.html,v retrieving revision 1.13 retrieving revision 1.14 diff -U2 -r1.13 -r1.14 --- create_file.html 20 Feb 2002 04:26:36 -0000 1.13 +++ create_file.html 20 Feb 2002 05:32:08 -0000 1.14 @@ -6,4 +6,5 @@ <input name="location" value="<TMPL_VAR NAME=LOCATION>" type="hidden" /> <input name="module_name" value="<TMPL_VAR NAME=MODULE_NAME>" type="hidden" /> +<input name="repo_name" value="<TMPL_VAR NAME=REPO_NAME>" type="hidden" /> Enter filename : <br /> Index: create_folder.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/create_folder.html,v retrieving revision 1.11 retrieving revision 1.12 diff -U2 -r1.11 -r1.12 --- create_folder.html 20 Feb 2002 04:26:36 -0000 1.11 +++ create_folder.html 20 Feb 2002 05:32:08 -0000 1.12 @@ -7,4 +7,5 @@ <input name="fullpath" value="<TMPL_VAR NAME=FULLPATH>" type="hidden" /> <input name="module_name" value="<TMPL_VAR NAME=MODULE_NAME>" type="hidden" /> +<input name="repo_name" value="<TMPL_VAR NAME=REPO_NAME>" type="hidden" /> Enter foldername:<br /> <input name="filename" type="text" /><br /> |
From: Rob H. <for...@us...> - 2002-02-20 05:32:11
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv28090/bin Modified Files: sandweb.cgi Log Message: fixing fallout from the multi-repo changes Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.193 retrieving revision 1.194 diff -U2 -r1.193 -r1.194 --- sandweb.cgi 20 Feb 2002 05:14:31 -0000 1.193 +++ sandweb.cgi 20 Feb 2002 05:32:08 -0000 1.194 @@ -194,4 +194,5 @@ filename => \@filename, module_name => $module_name, + repo_name => $repo_name, location => CGI::param('location'), ); @@ -827,4 +828,5 @@ location => $location, module_name => $module_name, + repo_name => $repo_name, ); } @@ -855,6 +857,7 @@ browse_module_menu( ck_auth => $ck_auth, - repo_name => $repo_name, + location => $location, module_name => $module_name, + repo_name => $repo_name, ); } @@ -1002,4 +1005,5 @@ location => $location, module_name => $module_name, + repo_name => $repo_name, ); exit 0; @@ -1010,4 +1014,5 @@ LOCATION => $location, MODULE_NAME => $module_name, + REPO_NAME => $repo_name, ); @@ -1026,17 +1031,19 @@ if ($file) { $file->create_folder(); - exit 0; + + browse_module_menu( + ck_auth => $ck_auth, + location => $location, + module_name => $module_name, + repo_name => $repo_name, + ); } - browse_module_menu( - ck_auth => $ck_auth, - location => $location, - module_name => $module_name, - ); my $content = $ui->get_menu( MENU => 'create_folder', PROGNAME => $progname, - MODULE_NAME => $module_name, LOCATION => $location, + MODULE_NAME => $module_name, + REPO_NAME => $repo_name, ); print CGI::header( -cookie => $ck_auth ); @@ -1071,4 +1078,5 @@ location => $location, module_name => $module_name, + repo_name => $repo_name, ); } @@ -1100,4 +1108,5 @@ location => $location, module_name => $module_name, + repo_name => $repo_name, ); } |
From: Rob H. <for...@us...> - 2002-02-20 05:14:34
|
Update of /cvsroot/sandweb/sandweb/lib/SandWeb In directory usw-pr-cvs1:/tmp/cvs-serv24997/lib/SandWeb Modified Files: Repository.pm Log Message: added lots of debug and fixed some more stuff Index: Repository.pm =================================================================== RCS file: /cvsroot/sandweb/sandweb/lib/SandWeb/Repository.pm,v retrieving revision 1.22 retrieving revision 1.23 diff -U2 -r1.22 -r1.23 --- Repository.pm 20 Feb 2002 04:49:49 -0000 1.22 +++ Repository.pm 20 Feb 2002 05:14:31 -0000 1.23 @@ -51,5 +51,4 @@ my $file = $args{'file'}; my $repo_type = $self->get_repo_type(); -# my $vcs = $self->get_vcs(); my $root = $self->get_root(); my $sandbox = $self->get_sandbox(); |
From: Rob H. <for...@us...> - 2002-02-20 05:14:34
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv24997/bin Modified Files: sandweb.cgi Log Message: added lots of debug and fixed some more stuff Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.192 retrieving revision 1.193 diff -U2 -r1.192 -r1.193 --- sandweb.cgi 20 Feb 2002 04:46:55 -0000 1.192 +++ sandweb.cgi 20 Feb 2002 05:14:31 -0000 1.193 @@ -1146,4 +1146,8 @@ my %return; + $log->debug("module_name: $module_name"); + $log->debug("username: $username"); + $log->debug("location: $location"); + my $repo_server = $user->get_repo_server(repo => $repo_name); my $repo_username = $user->get_repo_username(repo => $repo_name); @@ -1172,4 +1176,10 @@ ); + $log->debug("Repo name: $repo_name"); + $log->debug("Repo root: $repo_root"); + $log->debug("VCS sandbox: $users_dir/$username/$module_name"); + $log->debug("Repo type: $repo_type"); + $log->debug("Filename(s): @filename"); + if ( $vcs_command eq 'commit' ) { if ($message) { @@ -1189,4 +1199,5 @@ MENU => 'vcs_output', LOCATION => $location, + FILENAME => @filename, PROGNAME => $progname, VCS_OUTPUT => "@vcs_output", @@ -1207,4 +1218,6 @@ MENU => 'commit', LOCATION => $location, + MODULE_NAME => $module_name, + REPO_NAME => $repo_name, PROGNAME => $progname, FILENAME => "@filename", |
From: Rob H. <for...@us...> - 2002-02-20 05:14:34
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv24997/templates Modified Files: commit.html Log Message: added lots of debug and fixed some more stuff Index: commit.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/commit.html,v retrieving revision 1.9 retrieving revision 1.10 diff -U2 -r1.9 -r1.10 --- commit.html 13 Feb 2002 05:08:47 -0000 1.9 +++ commit.html 20 Feb 2002 05:14:32 -0000 1.10 @@ -2,9 +2,11 @@ <td width="center"> Please enter a commit message for <TMPL_VAR NAME=LOCATION>/<TMPL_VAR NAME=FILENAME> : - <form submit="<TMPL_VAR NAME=PROGNAME>" type="get"> + <form submit="<TMPL_VAR NAME=PROGNAME>""> <input type="hidden" name="action" value="browse_vcs" /> <input type="hidden" name="vcs_command" value="commit" /> <input type="hidden" name="filename" value="<TMPL_VAR NAME=FILENAME>" /> <input type="hidden" name="location" value="<TMPL_VAR NAME=LOCATION>" /> + <input type="hidden" name="module_name" value="<TMPL_VAR NAME=MODULE_NAME>" /> + <input type="hidden" name="repo_name" value="<TMPL_VAR NAME=REPO_NAME>" /> <input type="text" name="message" /> <input type="submit" name="commit" value="Done" /> |