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: Nick J. <nje...@us...> - 2002-02-28 06:33:01
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv31025 Modified Files: sandweb.cgi Log Message: * working on Delete, Update, module. *almost* working, but have to leave. checking in. Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.232 retrieving revision 1.233 diff -U2 -r1.232 -r1.233 --- sandweb.cgi 28 Feb 2002 06:14:20 -0000 1.232 +++ sandweb.cgi 28 Feb 2002 06:32:57 -0000 1.233 @@ -1784,16 +1784,22 @@ my $repo_root = $user->get_repo_root(repo => $repo_name); - my @module_list = $user->get_module_list(repo => $repo_name ); - - push @module_list, $module_name; - if ($user->module_exists(repo => $repo_name)) { + # true if commit vcs checkout action (works for update too) + my $do_vcs_action = 0; + + if ($submit eq 'Update') { # update module - $user->update_module( + $do_vcs_action = 1; + if ($user->module_exists(repo => $repo_name, module => $module_name)) { + $user->update_module( repo => $repo_name, module => $module_name, module_description => $module_description, - ); - } else { - # add module + ); + } else { + set_message("module '$module_name' does not exist."); + } + } elsif ($submit eq 'Checkout') { + # checkout module + $do_vcs_action = 1; $user->add_module( repo => $repo_name, @@ -1803,56 +1809,69 @@ } - my $username = $auth->get_username(); - my $template_dir = $config->{'paths'}->{'template_dir'}; - my $users_dir = $config->{'paths'}->{'users_dir'}; + if ($do_vcs_action) { + my $username = $auth->get_username(); + my $template_dir = $config->{'paths'}->{'template_dir'}; + my $users_dir = $config->{'paths'}->{'users_dir'}; + + my $vcsroot; + my @vcs_output = (); + my @vcs_error = (); + if ( $repo_type eq 'CVS' ) { + if ( $repo_connection eq 'local' ) { + $vcsroot = "$repo_root"; + } else { + $vcsroot = + ":$repo_connection:$repo_username\@$repo_server:$repo_root"; + } + } + + my $repository = SandWeb::Repository->new( + root => $vcsroot, + repo_type => $repo_type, + sandbox => "$users_dir/$username", + ); - my $vcsroot; - my @vcs_output = (); - my @vcs_error = (); - if ( $repo_type eq 'CVS' ) { - if ( $repo_connection eq 'local' ) { - $vcsroot = "$repo_root"; + my %return = $repository->checkout( + file => "$module_name", + ); + push (@vcs_output, "$return{'output'}\n"); + push (@vcs_error, "$return{'error'}\n"); + $log->debug('dump', \%return); + my $return = write_config(); + if (! $return) { + # uh oh, problem occured + sandbox( ck_auth => $ck_auth ); + } + my $content = $ui->get_menu( + MENU => 'vcs_output', + LOCATION => $module_name, #$location, + #FILENAME => "@filename", + PROGNAME => $progname, + VCS_OUTPUT => join('', @vcs_output), + VCS_ERROR => join('', @vcs_error), + ); + + print CGI::header( -cookie => $ck_auth ); + $ui->print_screen( + TITLE=> "SandWeb : sandbox", + MENU_TITLE => 'SandWeb', + SUBMENU_TITLE => "sandbox", + FOOTER => '', + CONTENT => $content, + ); + exit 0; + } elsif ($submit eq 'Delete') { + if ($user->module_exists(repo => $repo_name, module => $module_name)) { + #$user->delete_module(repo => $repo_name, module => $module_name); + # XXX + # DELETE MODULE DIRECTORY + # XXX - Ask rob how currently we are doing this? } else { - $vcsroot = - ":$repo_connection:$repo_username\@$repo_server:$repo_root"; + set_message("module '$module_name' does not exist."); } + my $return = write_config(); + sandbox_menu( ck_auth => $ck_auth ); + exit(0); } - - my $repository = SandWeb::Repository->new( - root => $vcsroot, - repo_type => $repo_type, - sandbox => "$users_dir/$username", - ); - - my %return = $repository->checkout( - file => "$module_name", - ); - push (@vcs_output, "$return{'output'}\n"); - push (@vcs_error, "$return{'error'}\n"); - - $log->debug('dump', \%return); - my $return = write_config(); - if (! $return) { - # uh oh, problem occured - module_checkout_menu( ck_auth => $ck_auth ); - } - - my $content = $ui->get_menu( - MENU => 'vcs_output', - LOCATION => $module_name, #$location, - #FILENAME => "@filename", - PROGNAME => $progname, - VCS_OUTPUT => join('', @vcs_output), - VCS_ERROR => join('', @vcs_error), - ); - print CGI::header( -cookie => $ck_auth ); - $ui->print_screen( - TITLE=> "SandWeb : module checkout", - MENU_TITLE => 'SandWeb', - SUBMENU_TITLE => "module checkout", - FOOTER => '', - CONTENT => $content, - ); - exit 0; } |
From: Nick J. <nje...@us...> - 2002-02-28 06:14:23
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv28024 Modified Files: sandweb.cgi Log Message: * merged module_* menus and sandbox_* menus together, removed all extra stuff. Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.231 retrieving revision 1.232 diff -U2 -r1.231 -r1.232 --- sandweb.cgi 28 Feb 2002 05:10:49 -0000 1.231 +++ sandweb.cgi 28 Feb 2002 06:14:20 -0000 1.232 @@ -155,8 +155,20 @@ $location = ""; } - sandbox_menu( - ck_auth => $ck_auth, - location => $location, - ); + + if ($submit) { + # called checkout commit + sandbox_commit( + ck_auth => $ck_auth, + repo_name => $repo_name, + module_name => $module_name, + module_description => $module_description, + submit => $submit, + ); + } else { + sandbox_menu( + ck_auth => $ck_auth, + location => $location, + ); + } } elsif ( $action eq 'browse_module' ) { @@ -192,20 +204,4 @@ ); } - elsif ( $action eq 'module_checkout' ) { - if ($submit) { - # called checkout commit - module_checkout_commit( - ck_auth => $ck_auth, - repo_name => $repo_name, - module_name => $module_name, - module_description => $module_description, - ); - } else { - # called checkout menu - module_checkout_menu( - ck_auth => $ck_auth, - ); - } - } elsif ( $action eq 'view_file' ) { # called file viewer @@ -345,6 +341,5 @@ } else { # called an invalid page - my $page = $action; - my $msg = "Invalid page - $page!"; + my $msg = "Invalid page - $action!"; $log->error("$msg"); set_message("$msg"); @@ -449,4 +444,18 @@ load_config(1); + my @repos = $user->get_repo_list(); + my @existing_repos = (); + + my $i = 0; + foreach my $repo (@repos) { + my %entry; + $entry{'REPO_NAME'} = $repo; + if ($i == 0) { + $entry{'SELECTED'} = 1; + } + push @existing_repos, \%entry; + $i++; + } + my @repo_list = $user->get_repo_list(); my @module_list = (); @@ -475,4 +484,5 @@ NO_MODULES => ($no_modules) ? "No exisiting modules.\n" : "", MODULE_LOOP => \@module_loop, + REPO_LIST => \@existing_repos, ); @@ -870,44 +880,4 @@ -sub module_checkout_menu { - my %args = @_; - my $ck_auth = $args{'ck_auth'}; - if (! load_config()) { - # no existing user config, forward to prefs menu - preferences_menu( ck_auth => $ck_auth ); - } - - my @repos = $user->get_repo_list(); - my @repo_list = (); - - my $i = 0; - foreach my $repo (@repos) { - my %entry; - $entry{'REPO_NAME'} = $repo; - if ($i == 0) { - $entry{'SELECTED'} = 1; - } - push @repo_list, \%entry; - $i++; - } - - my $content = $ui->get_menu( - MENU => 'module_checkout', - PROGNAME => $progname, - REPO_LIST => \@repo_list, - ); - - print CGI::header( -cookie => $ck_auth ); - $ui->print_screen( - TITLE=> 'SandWeb : module checkout', - MENU_TITLE => 'SandWeb', - SUBMENU_TITLE => 'module checkout', - FOOTER => '', - CONTENT => $content, - MESSAGE => $message, - ); - exit 0; -} - ############################################################################### # view file menu @@ -1789,7 +1759,7 @@ ############################################################################### -# module checkout commit +# sandbox commit # -# Uses the Repository object to do a checkout of specified module +# Uses the Repository object to do actions to sandbox modules # # args: @@ -1799,5 +1769,5 @@ ############################################################################### -sub module_checkout_commit { +sub sandbox_commit { my %args = @_; my $ck_auth = $args{'ck_auth'}; @@ -1806,4 +1776,5 @@ my $repo_name = $args{'repo_name'}; my $module_description = $args{'module_description'}; + my $submit = $args{'submit'}; my $repo_server = $user->get_repo_server(repo => $repo_name); |
From: Nick J. <nje...@us...> - 2002-02-28 06:12:34
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv27477 Modified Files: sandbox.html Log Message: * extensive restructuring in the sandbox menu. moving all module related management to sandbox menu & functions. (sandbox, might want to be called module or modules, or something now...) * reformatted sandbox menu to be more efficient with menus (and logical, but efficience is my excuse). Index: sandbox.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/sandbox.html,v retrieving revision 1.10 retrieving revision 1.11 diff -U2 -r1.10 -r1.11 --- sandbox.html 28 Feb 2002 05:23:19 -0000 1.10 +++ sandbox.html 28 Feb 2002 06:12:31 -0000 1.11 @@ -1,51 +1,76 @@ -<form submit="<TMPL_VAR NAME=PROGNAME>"> -<input type="hidden" name="action" value="browse" /> <tr> - <td width="80%" align="left"> - <TMPL_VAR NAME="NO_MODULES"><br /> - </td> - <td width="20%" align="center"> - [<a href="<TMPL_VAR NAME=PROGNAME>?action=module_checkout">checkout a module</a>] - </td> - </tr> <tr> <td width="100%" align="left" colspan="2"> <table width="100%" align="left" border="1"> - <tr> - <td width="20%" align="center" bgcolor="#CCCCCC"> - Module Name - </td> - <td width="40%" align="center" bgcolor="#CCCCCC"> - Description - </td> - <td width="25%" align="center" bgcolor="#CCCCCC"> - Repository - </td> - <td width="15%" align="center" bgcolor="#CCCCCC"> - Function - </td> - </tr> - <TMPL_LOOP NAME="MODULE_LOOP"> - <tr> - <td width="20%" align="left"> - <a href="<TMPL_VAR NAME=PROGNAME>?action=browse_module&repo_name=<TMPL_VAR NAME=REPO_NAME>&module_name=<TMPL_VAR NAME="MODULE_NAME">"><TMPL_VAR NAME="MODULE_NAME"></a> - </td> - <td width="40%" align="left"> - <TMPL_VAR NAME="MODULE_DESC"> - </td> - <td width="25%" align="center"> - <TMPL_VAR NAME="REPOSITORY"> - </td> - <td width="15%" align="center"> - <font size="2"> - <a href="<TMPL_VAR NAME=PROGNAME>?action=module_update&module_name=<TMPL_VAR NAME="MODULE_NAME">">update</a> - | - <a href="<TMPL_VAR NAME=PROGNAME>?action=module_delete&module_name=<TMPL_VAR NAME="MODULE_NAME">">delete</a> - </font> - </td> - </tr> + + <tr> + <td width="20%" align="center" bgcolor="#CCCCCC"> + Module Name + </td> + <td width="40%" align="center" bgcolor="#CCCCCC"> + Description + </td> + <td width="25%" align="center" bgcolor="#CCCCCC"> + Repository + </td> + <td width="15%" align="center" bgcolor="#CCCCCC"> + Function + </td> + </tr> + + + <form name="module" submit="<TMPL_VAR NAME=PROGNAME>"> + <input type="hidden" name="action" value="sandbox" /> + <tr> + <td width="20%" align="left"> + <input type="text" name="module_name" size="18" maxlength="30" /> + </td> + <td width="40%" align="left"> + <input type="text" name="module_description" size="35" maxlength="50" /> + </td> + <td width="25%" align="center"> + <select size="1" name="repo_name"> + <TMPL_LOOP NAME="REPO_LIST"> + <option <TMPL_IF NAME="SELECTED">selected</TMPL_IF>><TMPL_VAR NAME="REPO_NAME"></option> + </TMPL_LOOP> + </select> + </td> + <td width="15%" align="center"> + <input type="submit" name="Submit" value="Checkout" /> + </td> + </tr> + </form> + + <tr> + <td width="100%" align="left" colspan="4" bgcolor="#DDDDDD"> + <TMPL_VAR NAME="NO_MODULES"> <br /> + </td> + </tr> + +<form submit="<TMPL_VAR NAME=PROGNAME>"> +<input type="hidden" name="action" value="browse" /> + <TMPL_LOOP NAME="MODULE_LOOP"> + <tr> + <td width="20%" align="left"> + <a href="<TMPL_VAR NAME=PROGNAME>?action=browse_module&repo_name=<TMPL_VAR NAME=REPO_NAME>&module_name=<TMPL_VAR NAME="MODULE_NAME">"><TMPL_VAR NAME="MODULE_NAME"></a> + </td> + <td width="40%" align="left"> + <TMPL_VAR NAME="MODULE_DESC"> + </td> + <td width="25%" align="center"> + <TMPL_VAR NAME="REPOSITORY"> + </td> + <td width="15%" align="center"> + <font size="2"> + <a href="<TMPL_VAR NAME=PROGNAME>?action=sandbox&Submit=Update&module_name=<TMPL_VAR NAME="MODULE_NAME">">update</a> + | + <a href="<TMPL_VAR NAME=PROGNAME>?action=sandbox&Submit=Delete&module_name=<TMPL_VAR NAME="MODULE_NAME">">delete</a> + </font> + </td> + </tr> </TMPL_LOOP> +</form> + </table> </td> </tr> -</form> |
From: Nick J. <nje...@us...> - 2002-02-28 05:23:21
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv18901/templates Modified Files: sandbox.html Log Message: * module_checkout change Index: sandbox.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/sandbox.html,v retrieving revision 1.9 retrieving revision 1.10 diff -U2 -r1.9 -r1.10 --- sandbox.html 19 Feb 2002 09:09:14 -0000 1.9 +++ sandbox.html 28 Feb 2002 05:23:19 -0000 1.10 @@ -6,5 +6,5 @@ </td> <td width="20%" align="center"> - [<a href="<TMPL_VAR NAME=PROGNAME>?action=checkout">checkout a module</a>] + [<a href="<TMPL_VAR NAME=PROGNAME>?action=module_checkout">checkout a module</a>] </td> </tr> |
From: Nick J. <nje...@us...> - 2002-02-28 05:10:52
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv16381/bin Modified Files: sandweb.cgi Log Message: * changing menu checkout to menu module_checkout, updating relevant info Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.230 retrieving revision 1.231 diff -U2 -r1.230 -r1.231 --- sandweb.cgi 28 Feb 2002 04:59:36 -0000 1.230 +++ sandweb.cgi 28 Feb 2002 05:10:49 -0000 1.231 @@ -192,8 +192,8 @@ ); } - elsif ( $action eq 'checkout' ) { + elsif ( $action eq 'module_checkout' ) { if ($submit) { # called checkout commit - checkout_commit( + module_checkout_commit( ck_auth => $ck_auth, repo_name => $repo_name, @@ -203,5 +203,5 @@ } else { # called checkout menu - checkout_menu( + module_checkout_menu( ck_auth => $ck_auth, ); @@ -870,5 +870,5 @@ -sub checkout_menu { +sub module_checkout_menu { my %args = @_; my $ck_auth = $args{'ck_auth'}; @@ -893,5 +893,5 @@ my $content = $ui->get_menu( - MENU => 'checkout', + MENU => 'module_checkout', PROGNAME => $progname, REPO_LIST => \@repo_list, @@ -900,7 +900,7 @@ print CGI::header( -cookie => $ck_auth ); $ui->print_screen( - TITLE=> 'SandWeb : checkout', + TITLE=> 'SandWeb : module checkout', MENU_TITLE => 'SandWeb', - SUBMENU_TITLE => 'checkout', + SUBMENU_TITLE => 'module checkout', FOOTER => '', CONTENT => $content, @@ -1789,5 +1789,5 @@ ############################################################################### -# checkout commit +# module checkout commit # # Uses the Repository object to do a checkout of specified module @@ -1799,5 +1799,5 @@ ############################################################################### -sub checkout_commit { +sub module_checkout_commit { my %args = @_; my $ck_auth = $args{'ck_auth'}; @@ -1854,11 +1854,9 @@ ); -# foreach my $file (@filename) { - my %return = $repository->checkout( - file => "$module_name", - ); - push (@vcs_output, "$return{'output'}\n"); - push (@vcs_error, "$return{'error'}\n"); -# } + my %return = $repository->checkout( + file => "$module_name", + ); + push (@vcs_output, "$return{'output'}\n"); + push (@vcs_error, "$return{'error'}\n"); $log->debug('dump', \%return); @@ -1866,5 +1864,5 @@ if (! $return) { # uh oh, problem occured - checkout_menu( ck_auth => $ck_auth ); + module_checkout_menu( ck_auth => $ck_auth ); } @@ -1879,7 +1877,7 @@ print CGI::header( -cookie => $ck_auth ); $ui->print_screen( - TITLE=> "SandWeb : checkout", + TITLE=> "SandWeb : module checkout", MENU_TITLE => 'SandWeb', - SUBMENU_TITLE => "checkout", + SUBMENU_TITLE => "module checkout", FOOTER => '', CONTENT => $content, |
From: Nick J. <nje...@us...> - 2002-02-28 05:10:22
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv16322 Added Files: module_checkout.html Removed Files: checkout.html Log Message: * changing checkout.html to checkout_module.html --- NEW FILE --- <form submit="<TMPL_VAR NAME=PROGNAME>"> <input type="hidden" name="action" value="checkout"> <tr> <td width="100%"> Select repository: <select size="1" name="repo_name"> <TMPL_LOOP NAME="REPO_LIST"> <option <TMPL_IF NAME="SELECTED">selected</TMPL_IF>><TMPL_VAR NAME="REPO_NAME"></option> </TMPL_LOOP> </select> <br /> <br /> Enter module name to checkout: <input type="text" name="module_name" size="12" maxlength="24" /> <br /> <br /> Enter brief description of module: <input type="text" name="module_description" size="20" maxlength="30" /> <br /> <br /> <input type="submit" name="Submit" value="Checkout" /> </td> </tr> </form> --- checkout.html DELETED --- |
From: Nick J. <nje...@us...> - 2002-02-28 04:59:39
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv14404/bin Modified Files: sandweb.cgi Log Message: * added messages for creating new repository and updating existing repository Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.229 retrieving revision 1.230 diff -U2 -r1.229 -r1.230 --- sandweb.cgi 28 Feb 2002 04:32:33 -0000 1.229 +++ sandweb.cgi 28 Feb 2002 04:59:36 -0000 1.230 @@ -1968,4 +1968,5 @@ root => $repo_root, ); + set_message("$repo_name updated."); } else { $user->create_repo( @@ -1977,4 +1978,5 @@ root => $repo_root, ); + set_message("$repo_name created."); } } elsif ($submit eq 'Delete') { |
From: Nick J. <nje...@us...> - 2002-02-28 04:57:17
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv13851 Modified Files: repository.html Log Message: * created some javascript for the repository menu to confirm delete, check fields before submitting, etc. Index: repository.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/repository.html,v retrieving revision 1.10 retrieving revision 1.11 diff -U2 -r1.10 -r1.11 --- repository.html 28 Feb 2002 04:32:52 -0000 1.10 +++ repository.html 28 Feb 2002 04:57:13 -0000 1.11 @@ -5,4 +5,63 @@ document.repository.submit(); } + +function doSubmit(clicked) { + var submitOk = false; + if (checkForm(clicked)) { + submitOk = true + } + +// else if (clicked == 'Cancel') { +// if (formChanged()) { +// if (confirm("This form has been modified. Continue anyway?")) { +// submitOk = true; +// } +// } +// else { +// submitOk = true; +// } +// } + + if (submitOk) { + submitForm(clicked); + } +} + +function checkForm(clicked) { + if (clicked == 'Delete') { + if (confirm("Are you sure you wish to delete this repository?")) { + return true; + } + } + else if (clicked == 'Commit') { + if (isEmpty(document.repository.repo_name.value)) { + alert("Please enter a name for the repository."); + return false; + } + else if (isEmpty(document.repository.repo_server.value)) { + alert("Please enter a servername for the repository."); + return false; + } + else if (isEmpty(document.repository.repo_root.value)) { + alert("Please enter the root path to the repository."); + return false; + } + return true; + } + else { + return true; + } + return false; +} + +function isEmpty(input) { + if (input == "" || input == null || input == 0) { + return true; + } + else { + return false; + } +} + // --> </script> @@ -87,7 +146,12 @@ <td width="25%" align="center"> <br /> - <input type="submit" name="Submit" Value="Delete" /> + <input type="submit" name="Submit" Value="Delete" onClick="javascript:{doSubmit('Delete');}" /> +<!-- +<a href="javascript:{doSubmit('Delete');}" onMouseOver="rollOver(2)" onMouseO +ut="rollOut(2)"><img border="0" src="<TMPL_VAR NAME=IMAGE_DIR>/delete_share-out- +<TMPL_VAR NAME=LANG>.gif" width="79" height="20" name="button2"></a> +--> - <input type="submit" name="Submit" Value="Commit" /> + <input type="submit" name="Submit" Value="Commit" onClick="javascript:{doSubmit('Commit');}" /> </td> <td width="60%" align="center"> |
From: Nick J. <nje...@us...> - 2002-02-28 04:36:15
|
Update of /cvsroot/sandweb/sandweb/lib/SandWeb In directory usw-pr-cvs1:/tmp/cvs-serv10166/lib/SandWeb Modified Files: UI.pm Log Message: * made some changes to UI to reflect MESSAGE changes Index: UI.pm =================================================================== RCS file: /cvsroot/sandweb/sandweb/lib/SandWeb/UI.pm,v retrieving revision 1.26 retrieving revision 1.27 diff -U2 -r1.26 -r1.27 --- UI.pm 22 Feb 2002 23:00:07 -0000 1.26 +++ UI.pm 28 Feb 2002 04:36:12 -0000 1.27 @@ -29,15 +29,15 @@ my @debug_msgs = (); - my $error_msg = ''; + my $message = ''; # set debug mesg if debug is toggled if ($log->get_debug_toggle()) { - foreach my $msg ($log->get_debug_msgs()) { + foreach my $debug_msg ($log->get_debug_msgs()) { my %debug_content; - $debug_content{'DEBUG_MSG'} = "DEBUG: $msg"; + $debug_content{'DEBUG_MSG'} = "DEBUG: $debug_msg"; push @debug_msgs, \%debug_content; } } - if ($args{'ERROR'}) { - $error_msg = "$args{'ERROR'}"; + if ($args{'MESSAGE'}) { + $message = "$args{'MESSAGE'}"; } @@ -52,5 +52,5 @@ MENU_BAR => $menu_bar, DEBUG => \@debug_msgs, - ERROR => $error_msg, + MESSAGE => $message, ); |
From: Nick J. <nje...@us...> - 2002-02-28 04:33:31
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv9621/templates Modified Files: commit.html edit_file.html file.html tag.html upload_file.html view_file.html Log Message: * removed invalid ERROR references (ERROR, which is now MESSAGE, is only supposed to be in the framework.html). Index: commit.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/commit.html,v retrieving revision 1.11 retrieving revision 1.12 diff -U2 -r1.11 -r1.12 --- commit.html 24 Feb 2002 06:31:26 -0000 1.11 +++ commit.html 28 Feb 2002 04:33:29 -0000 1.12 @@ -11,5 +11,4 @@ <input type="text" name="message" /> <input type="submit" name="commit" value="Done" /> - <TMPL_VAR NAME=ERROR> </form> </td> Index: edit_file.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/edit_file.html,v retrieving revision 1.27 retrieving revision 1.28 diff -U2 -r1.27 -r1.28 --- edit_file.html 24 Feb 2002 08:01:09 -0000 1.27 +++ edit_file.html 28 Feb 2002 04:33:29 -0000 1.28 @@ -13,5 +13,4 @@ </pre> </form> - <TMPL_VAR NAME=ERROR> <TMPL_VAR NAME=OUTPUT> </td> Index: file.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/file.html,v retrieving revision 1.3 retrieving revision 1.4 diff -U2 -r1.3 -r1.4 --- file.html 31 Jan 2002 23:31:58 -0000 1.3 +++ file.html 28 Feb 2002 04:33:29 -0000 1.4 @@ -6,5 +6,4 @@ <TMPL_VAR NAME=OUTPUT> </pre> - <TMPL_VAR NAME=ERROR> </td> </tr> Index: tag.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/tag.html,v retrieving revision 1.4 retrieving revision 1.5 diff -U2 -r1.4 -r1.5 --- tag.html 31 Jan 2002 23:31:58 -0000 1.4 +++ tag.html 28 Feb 2002 04:33:29 -0000 1.5 @@ -9,5 +9,4 @@ <input type="text" name="name" /> <input type="submit" name="commit" value="Done" /> - <TMPL_VAR NAME=ERROR> </form> </center> Index: upload_file.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/upload_file.html,v retrieving revision 1.14 retrieving revision 1.15 diff -U2 -r1.14 -r1.15 --- upload_file.html 24 Feb 2002 06:31:26 -0000 1.14 +++ upload_file.html 28 Feb 2002 04:33:29 -0000 1.15 @@ -10,5 +10,4 @@ <input name="filename" value="<TMPL_VAR NAME=FILENAME>" type="hidden" /> Enter a file to upload:<br /> -<TMPL_VAR NAME=ERROR> <input name="filehandle" type="file" /><br /> <input name="Submit" type="submit" value="Done" /><br /> Index: view_file.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/view_file.html,v retrieving revision 1.41 retrieving revision 1.42 diff -U2 -r1.41 -r1.42 --- view_file.html 24 Feb 2002 08:01:09 -0000 1.41 +++ view_file.html 28 Feb 2002 04:33:29 -0000 1.42 @@ -9,5 +9,4 @@ [<a href="<TMPL_VAR NAME=PROGNAME>/<TMPL_VAR NAME=FILENAME>?action=edit_file&location=<TMPL_VAR NAME=LOCATION>&filename=<TMPL_VAR NAME=FILENAME>&module_name=<TMPL_VAR NAME=MODULE_NAME>&repo_name=<TMPL_VAR NAME=REPO_NAME>">edit</a>] </TMPL_IF> - <TMPL_VAR NAME=ERROR> <br /> </td> |
From: Nick J. <nje...@us...> - 2002-02-28 04:32:55
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv9547/templates Modified Files: repository.html Log Message: * added delete button Index: repository.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/repository.html,v retrieving revision 1.9 retrieving revision 1.10 diff -U2 -r1.9 -r1.10 --- repository.html 13 Feb 2002 05:42:01 -0000 1.9 +++ repository.html 28 Feb 2002 04:32:52 -0000 1.10 @@ -85,9 +85,11 @@ <br /> </td> - <td width="10%" align="center"> + <td width="25%" align="center"> <br /> + <input type="submit" name="Submit" Value="Delete" /> + <input type="submit" name="Submit" Value="Commit" /> </td> - <td width="75%" align="center"> + <td width="60%" align="center"> <br /> </td> |
From: Nick J. <nje...@us...> - 2002-02-28 04:32:35
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv9380/bin Modified Files: sandweb.cgi Log Message: * added repository deletion functionality. * changed all ERROR => $error to MESSAGE => $message and, set_error is now set_message, etc. etc. Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.228 retrieving revision 1.229 diff -U2 -r1.228 -r1.229 --- sandweb.cgi 28 Feb 2002 03:48:41 -0000 1.228 +++ sandweb.cgi 28 Feb 2002 04:32:33 -0000 1.229 @@ -27,5 +27,5 @@ # internal global vars -my $error = ''; +my $message = ''; # object creation, all objects global throughout CGI @@ -84,5 +84,5 @@ unless ($stat) { # unable to load user with auth cookie, or auth cookie expired - set_error("Please login first."); + set_message("Please login first."); $log->debug("unable to get valid authentication cookie: '$ck_auth'"); login_menu(); @@ -328,4 +328,5 @@ repo_root => $repo_root, new_repository => $new_repository, + submit => $submit, ); } else { @@ -347,5 +348,5 @@ my $msg = "Invalid page - $page!"; $log->error("$msg"); - set_error("$msg"); + set_message("$msg"); # load current menu (instead of going to new one) #no strict 'refs'; @@ -390,5 +391,5 @@ FOOTER => '', CONTENT => $content, - ERROR => $error, + MESSAGE => $message, ); exit 0; @@ -422,5 +423,5 @@ FOOTER => '', CONTENT => $content, - ERROR => $error, + MESSAGE => $message, ); exit 0; @@ -484,5 +485,5 @@ FOOTER => '', CONTENT => $content, - ERROR => $error, + MESSAGE => $message, ); } @@ -653,5 +654,5 @@ FOOTER => '', CONTENT => $content, - ERROR => $error, + MESSAGE => $message, ); exit 0; @@ -691,5 +692,5 @@ FOOTER => '', CONTENT => $content, - ERROR => $error, + MESSAGE => $message, ); exit 0; @@ -749,5 +750,5 @@ if (!$valid) { # bad repository name - set_error("Invalid repository name: $repository_selected\n"); + set_message("Invalid repository name: $repository_selected\n"); $repository_selected = $new_string; $repo_name = ''; @@ -863,5 +864,5 @@ FOOTER => '', CONTENT => $content, - ERROR => $error, + MESSAGE => $message, ); exit 0; @@ -904,5 +905,5 @@ FOOTER => '', CONTENT => $content, - ERROR => $error, + MESSAGE => $message, ); exit 0; @@ -968,5 +969,5 @@ if ( $file->get_file_type() ne "Text" ) { $log->debug("User wants to view non-text file : $filename"); - set_error("This does not appear to be a text file."); + set_message("This does not appear to be a text file."); $file_content = ""; } else { @@ -1025,5 +1026,5 @@ FOOTER => '', CONTENT => $content, - ERROR => $error, + MESSAGE => $message, ); } @@ -1074,5 +1075,5 @@ if ( $file->get_file_type() ne "Text" ) { $log->debug("User wants to edit non-text file : $filename"); - set_error("This does not appear to be a text file."); + set_message("This does not appear to be a text file."); view_file_menu( ck_auth => $ck_auth, @@ -1105,5 +1106,5 @@ FOOTER => '', CONTENT => $content, - ERROR => $error, + MESSAGE => $message, ); } @@ -1149,5 +1150,5 @@ FOOTER => '', CONTENT => $content, - ERROR => $error, + MESSAGE => $message, ); } @@ -1188,5 +1189,5 @@ FOOTER => '', CONTENT => $content, - ERROR => $error, + MESSAGE => $message, ); } @@ -1227,5 +1228,5 @@ FOOTER => '', CONTENT => $content, - ERROR => $error, + MESSAGE => $message, ); } @@ -1346,5 +1347,5 @@ unless (@filename) { $log->debug("no files selected for removal"); - set_error("Please select file(s) or folder(s) to delete."); + set_message("Please select file(s) or folder(s) to delete."); browse_module_menu( ck_auth => $ck_auth, @@ -1369,7 +1370,7 @@ } else { if ( $file->delete_file() ) { - set_error("$filename deleted."); + set_message("$filename deleted."); } else { - set_error("Cannot delete $filename."); + set_message("Cannot delete $filename."); } } @@ -1522,5 +1523,5 @@ ); } else { - set_error("Error: no file was received!"); + set_message("Error: no file was received!"); browse_module_menu( @@ -1686,5 +1687,5 @@ FOOTER => '', CONTENT => $content, - ERROR => $error, + MESSAGE => $message, ); exit 0; @@ -1705,5 +1706,5 @@ FOOTER => '', CONTENT => $content, - ERROR => $error, + MESSAGE => $message, ); exit 0; @@ -1741,8 +1742,8 @@ FOOTER => '', CONTENT => $content, - ERROR => $error, + MESSAGE => $message, ); } else { - set_error("VCS $vcs_command on @filename"); + set_message("VCS $vcs_command on @filename"); browse_module_menu( ck_auth => $ck_auth, @@ -1782,5 +1783,5 @@ FOOTER => '', CONTENT => $content, - ERROR => $error, + MESSAGE => $message, ); exit 0; @@ -1921,5 +1922,5 @@ # uh oh, problem occured $log->error("$msg"); - set_error("$msg"); + set_message("$msg"); preferences_menu( ck_auth => $ck_auth ); } @@ -1941,4 +1942,5 @@ my $repo_root = $args{'repo_root'}; my $new_repository = $args{'new_repository'} ? 1 : 0; + my $submit = $args{'submit'}; my $new_string = 'Add a new repository'; @@ -1946,33 +1948,49 @@ $log->debug("<pre>" . Dumper(\%args) . "</pre>"); - if (! $repo_name) { - # cannot commit without repository name - $log->error("cannot commit without repository name!\n"); - set_error("cannot commit without repository name!\n"); - repository_menu( ck_auth => $ck_auth ); - exit(0); - } - # commit data to file - if ($user->repository_exists(repo => $repo_name)) { - $log->debug("updating: username '$repo_username'\n"); - $user->update_repo( - name => $repo_name, - server => $repo_server, - username => $repo_username, - connection => $repo_connection, - type => $repo_type, - root => $repo_root, - ); - } else { - $user->create_repo( - name => $repo_name, - server => $repo_server, - username => $repo_username, - connection => $repo_connection, - type => $repo_type, - root => $repo_root, - ); + if ($submit eq 'Commit') { + # commit data to file + if (! $repo_name) { + # cannot commit without repository name + $log->error("cannot commit without repository name!\n"); + set_message("cannot commit without repository name!\n"); + repository_menu( ck_auth => $ck_auth ); + exit(0); + } + elsif ($user->repository_exists(repo => $repo_name)) { + $log->debug("updating: username '$repo_username'\n"); + $user->update_repo( + name => $repo_name, + server => $repo_server, + username => $repo_username, + connection => $repo_connection, + type => $repo_type, + root => $repo_root, + ); + } else { + $user->create_repo( + name => $repo_name, + server => $repo_server, + username => $repo_username, + connection => $repo_connection, + type => $repo_type, + root => $repo_root, + ); + } + } elsif ($submit eq 'Delete') { + # delete repository entry + $log->debug("deleting $repository_selected"); + if ((!$repository_selected) || ($repository_selected eq $new_string)) { + # cannot commit without repository name + $log->error("cannot delete without repository name!\n"); + set_message("cannot delete without repository name!\n"); + repository_menu( ck_auth => $ck_auth ); + exit(0); + } + $user->delete_repo( name => $repository_selected ); + $repo_name = ''; + set_message("$repository_selected deleted."); } + $log->debug("done $repository_selected '$submit'"); my $return = write_config(); @@ -2021,5 +2039,5 @@ # if $no_error is true, ignore this error msgs if (! $no_error) { - set_error("No config file cound for '$username', enter preferences."); + set_message("No config file cound for '$username', enter preferences."); } return 0; @@ -2057,5 +2075,5 @@ $log->debug("ERROR: $msg"); $log->error("$msg"); - set_error("$msg"); + set_message("$msg"); return 0; } @@ -2095,5 +2113,5 @@ else { $log->standard("Invalid login attempt, username: $username"); - set_error("Login incorrect, please try again."); + set_message("Login incorrect, please try again."); login_menu(); } @@ -2114,5 +2132,5 @@ } else { - set_error("Logout failed: $stat"); + set_message("Logout failed: $stat"); login_menu(); } @@ -2122,14 +2140,14 @@ # set error # -# assign error message to global $error IF it's not yet set. +# assign error message to global $msg IF it's not yet set. # # No args. ############################################################################### -sub set_error { - if (! $error) { - $error = shift; +sub set_message { + if (! $message) { + $message = shift; } else { - $log->debug("ERROR: shift"); + $log->debug("MESSAGE: " . shift); } return 1; |
From: Nick J. <nje...@us...> - 2002-02-28 04:31:35
|
Update of /cvsroot/sandweb/sandweb/lib/SandWeb In directory usw-pr-cvs1:/tmp/cvs-serv9306/lib/SandWeb Modified Files: Config.pm Log Message: * added delete_repo method Index: Config.pm =================================================================== RCS file: /cvsroot/sandweb/sandweb/lib/SandWeb/Config.pm,v retrieving revision 1.22 retrieving revision 1.23 diff -U2 -r1.22 -r1.23 --- Config.pm 18 Feb 2002 21:43:53 -0000 1.22 +++ Config.pm 28 Feb 2002 04:31:32 -0000 1.23 @@ -187,4 +187,11 @@ } +# delete existing repository +sub delete_repo { + my $self = shift; + my %args = @_; + my $name = $args{'name'}; + delete $self->{'repo'}->{$name}; +} # get/set repo_server |
From: Nick J. <nje...@us...> - 2002-02-28 04:31:10
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv9156/templates Modified Files: framework.html Log Message: * changed ERROR to MESSAGE, since it's more general purpose notification than only ERRORS Index: framework.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/framework.html,v retrieving revision 1.16 retrieving revision 1.17 diff -U2 -r1.16 -r1.17 --- framework.html 21 Feb 2002 05:43:14 -0000 1.16 +++ framework.html 28 Feb 2002 04:31:08 -0000 1.17 @@ -64,5 +64,5 @@ <tr> <td width="100%" align="center" valign="center"> - <font color="#EE6666"><TMPL_VAR NAME=ERROR></font><br /> + <font color="#EE6666"><TMPL_VAR NAME=MESSAGE></font><br /> </td> </tr> |
From: Nick J. <nje...@us...> - 2002-02-28 04:02:10
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv3114 Modified Files: browse_module.html Log Message: * changed" select all/clear all" to be one checkbox toggle instead of two seperate hyperlinks. Index: browse_module.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/browse_module.html,v retrieving revision 1.22 retrieving revision 1.23 diff -U2 -r1.22 -r1.23 --- browse_module.html 24 Feb 2002 05:03:32 -0000 1.22 +++ browse_module.html 28 Feb 2002 04:02:04 -0000 1.23 @@ -1,3 +1,11 @@ <script language="javascript"> +function selectAllClearAll(me, field) { + if (me.checked == true) { + selectAll(field); + } + else { + clearAll(field); + } +} function selectAll(field) { for (i = 0; i < field.length; i++) @@ -16,8 +24,5 @@ <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/>] + <input type="checkbox" onClick="javascript:selectAllClearAll(document.browse.select, document.browse.filename)" name="select" value="true"> Select all </td> </tr> |
From: Nick J. <nje...@us...> - 2002-02-28 03:54:32
|
Update of /cvsroot/sandweb/sandweb/templates In directory usw-pr-cvs1:/tmp/cvs-serv2103/templates Modified Files: current_location.html Log Message: * updated LOCATION_LINK to be /name instead of [name] Index: current_location.html =================================================================== RCS file: /cvsroot/sandweb/sandweb/templates/current_location.html,v retrieving revision 1.4 retrieving revision 1.5 diff -U2 -r1.4 -r1.5 --- current_location.html 23 Feb 2002 04:32:48 -0000 1.4 +++ current_location.html 28 Feb 2002 03:54:29 -0000 1.5 @@ -4,7 +4,5 @@ <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> + <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: Nick J. <nje...@us...> - 2002-02-28 03:54:32
|
Update of /cvsroot/sandweb/sandweb/lib/SandWeb In directory usw-pr-cvs1:/tmp/cvs-serv2103/lib/SandWeb Modified Files: Browse.pm Log Message: * updated LOCATION_LINK to be /name instead of [name] Index: Browse.pm =================================================================== RCS file: /cvsroot/sandweb/sandweb/lib/SandWeb/Browse.pm,v retrieving revision 1.66 retrieving revision 1.67 diff -U2 -r1.66 -r1.67 --- Browse.pm 25 Feb 2002 22:10:23 -0000 1.66 +++ Browse.pm 28 Feb 2002 03:54:29 -0000 1.67 @@ -209,5 +209,5 @@ unless ($count) { my %row_data; - $row_data{LOCATION_LINK} = "[$module_name]"; + $row_data{LOCATION_LINK} = "/$module_name"; $row_data{LOCATION_FULL} = "/"; $row_data{PROGNAME} = "$progname"; @@ -221,5 +221,5 @@ my %row_data; if ( $link ) { - $row_data{LOCATION_LINK} = "[$link]"; + $row_data{LOCATION_LINK} = "/$link"; } |
From: Nick J. <nje...@us...> - 2002-02-28 03:48:46
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv1266/bin Modified Files: sandweb.cgi Log Message: * took out looping debug msg, causing lots garbage (only seemed usefull for initial implementation and not for long term debuging) Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.227 retrieving revision 1.228 diff -U2 -r1.227 -r1.228 --- sandweb.cgi 28 Feb 2002 03:46:20 -0000 1.227 +++ sandweb.cgi 28 Feb 2002 03:48:41 -0000 1.228 @@ -590,5 +590,4 @@ my $count = 0; while ( $toolbar{'VCS_CMD_LOOP'}->[$count] ) { - $log->debug('dump', $toolbar{'VCS_CMD_LOOP'}->[$count]); push (@loop_data, $toolbar{'VCS_CMD_LOOP'}->[$count]); $count++; |
From: Nick J. <nje...@us...> - 2002-02-28 03:46:24
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv870/bin Modified Files: sandweb.cgi Log Message: * fixed little bug that determins whether there are eixsting modules or not Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.226 retrieving revision 1.227 diff -U2 -r1.226 -r1.227 --- sandweb.cgi 26 Feb 2002 00:22:42 -0000 1.226 +++ sandweb.cgi 28 Feb 2002 03:46:20 -0000 1.227 @@ -442,5 +442,5 @@ my $ck_auth = $args{'ck_auth'}; - my $no_modules = 0; # true if user has no repositories defined + my $no_modules = 1; # true if user has no repositories defined my @module_loop = (); @@ -465,6 +465,5 @@ push @module_loop, \%entry; } - } else { - $no_modules = 1; + $no_modules = 0; } } |
From: Rob H. <for...@us...> - 2002-02-26 00:22:46
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv1635/bin Modified Files: sandweb.cgi Log Message: fixed overzealous stripping of / in location that made edit/unedit have problems when returning to browse_module_menu Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.225 retrieving revision 1.226 diff -U2 -r1.225 -r1.226 --- sandweb.cgi 26 Feb 2002 00:12:52 -0000 1.225 +++ sandweb.cgi 26 Feb 2002 00:22:42 -0000 1.226 @@ -1663,7 +1663,4 @@ if ( $vcs_command eq 'commit' ) { if ($message) { - # can't give the leading / to the VCS - $location =~ s/\///; - foreach my $file (@filename) { %return = $repository->commit( @@ -1719,6 +1716,4 @@ # elsif ( $vcs_command eq 'edit' || $vcs_command eq 'unedit' ) { - # can't give the leading / to the VCS - $location =~ s/\///; foreach my $file (@filename) { |
From: Rob H. <for...@us...> - 2002-02-26 00:12:55
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv31651/bin Modified Files: sandweb.cgi Log Message: edit and unedit should only call vcs_output.html if there is an error, as they normally have no output Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.224 retrieving revision 1.225 diff -U2 -r1.224 -r1.225 --- sandweb.cgi 25 Feb 2002 23:52:24 -0000 1.224 +++ sandweb.cgi 26 Feb 2002 00:12:52 -0000 1.225 @@ -1714,5 +1714,50 @@ exit 0; } - else { + # + # we only need to show a template for these vcs commands if + # there is an error. they normally have no output. + # + elsif ( $vcs_command eq 'edit' || $vcs_command eq 'unedit' ) { + # can't give the leading / to the VCS + $location =~ s/\///; + + foreach my $file (@filename) { + %return = $repository->$vcs_command( + file => "$file", + message => "$message", + ); + push (@vcs_output, "$return{'output'}\n"); + push (@vcs_error, "$return{'error'}\n"); + } + + my $content = $ui->get_menu( + MENU => 'vcs_output', + LOCATION => $location, + FILENAME => @filename, + PROGNAME => $progname, + VCS_OUTPUT => join('', @vcs_output), + VCS_ERROR => join('', @vcs_error), + ); + + if ( $return{'error'} ) { + print CGI::header( -cookie => $ck_auth ); + $ui->print_screen( + TITLE=> "SandWeb : VCS $vcs_command", + MENU_TITLE => 'SandWeb', + SUBMENU_TITLE => "VCS $vcs_command", + FOOTER => '', + CONTENT => $content, + ERROR => $error, + ); + } else { + set_error("VCS $vcs_command on @filename"); + browse_module_menu( + ck_auth => $ck_auth, + location => $location, + module_name => $module_name, + repo_name => $repo_name, + ); + } + } else { # this is where the Repository object is used # can't give the leading / to the VCS |
From: Rob H. <for...@us...> - 2002-02-25 23:52:28
|
Update of /cvsroot/sandweb/sandweb/lib/SandWeb/Repository In directory usw-pr-cvs1:/tmp/cvs-serv25608/lib/SandWeb/Repository Modified Files: CVS.pm Log Message: VCS subsystem can now handle spaces in directories, and should fully work with the multi-repo stuff ( looks like everything below the first directory was not working properly :P ) Index: CVS.pm =================================================================== RCS file: /cvsroot/sandweb/sandweb/lib/SandWeb/Repository/CVS.pm,v retrieving revision 1.28 retrieving revision 1.29 diff -U2 -r1.28 -r1.29 --- CVS.pm 25 Feb 2002 23:27:32 -0000 1.28 +++ CVS.pm 25 Feb 2002 23:52:24 -0000 1.29 @@ -38,5 +38,5 @@ if ($message) { push @param, " -m $message" }; - my $output = `cd $sandbox && cvs -d $root @param \"$file\" 2>&1`; + my $output = `cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1`; my $errorlevel = $?; @@ -89,5 +89,5 @@ if ($recurse) { push @param, " -R" }; - my $output = `cd $sandbox && cvs -d $root @param \"$file\" 2>&1`; + my $output = `cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1`; my $errorlevel = $?; @@ -116,5 +116,5 @@ if ($date) { push @param, " $date" }; - my $output = `cd $sandbox && cvs -d $root @param \"$file\" 2>&1`; + my $output = `cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1`; my $errorlevel = $?; @@ -154,5 +154,5 @@ }; - my $output = `cd $sandbox && cvs -d $root @param \"$file\" 2>&1`; + my $output = `cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1`; my $errorlevel = $?; @@ -186,7 +186,7 @@ if ($recurse) { push @param, " -R" }; - print "cd $sandbox && cvs -d $root @param \"$file\" 2>&1"; + print "cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1"; - my $raw_output = `cd $sandbox && cvs -d $root @param \"$file\" 2>&1`; + my $raw_output = `cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1`; my $errorlevel = $?; @@ -220,5 +220,5 @@ if ($recurse) { push @param, " -R" }; - my $output = `cd $sandbox && cvs -d $root @param \"$file\" 2>&1`; + my $output = `cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1`; my $errorlevel = $?; @@ -244,5 +244,5 @@ if ($recurse) { push @param, " -R" }; - my $output = `cd $sandbox && cvs -d $root @param \"$file\" 2>&1`; + my $output = `cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1`; my $errorlevel = $?; @@ -265,5 +265,5 @@ my @param = 'history'; - my $output = `cd $sandbox && cvs -d $root @param \"$file\" 2>&1`; + my $output = `cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1`; my $errorlevel = $?; @@ -286,5 +286,5 @@ my @param = 'init'; - my $output = `cd $sandbox && cvs -d $root @param \"$file\" 2>&1`; + my $output = `cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1`; my $errorlevel = $?; @@ -307,5 +307,5 @@ my @param = 'log'; - my $output = `cd $sandbox && cvs -d $root @param \"$file\" 2>&1`; + my $output = `cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1`; my $errorlevel = $?; @@ -336,5 +336,5 @@ } - my $output = `cd $sandbox && cvs -d $root @param \"$file\" 2>&1`; + my $output = `cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1`; my $errorlevel = $?; @@ -354,5 +354,5 @@ my @param = 'logout'; - my $output = `cd $sandbox && cvs -d $root @param \"$file\" 2>&1`; + my $output = `cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1`; my $errorlevel = $?; @@ -378,5 +378,5 @@ if ($delete) { push @param, " -f" }; - my $output = `cd $sandbox && cvs -d $root @param \"$file\" 2>&1`; + my $output = `cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1`; my $errorlevel = $?; @@ -404,5 +404,5 @@ if ($recurse) { push @param, " -R" }; - my $output = `cd $sandbox && cvs -d $root @param \"$file\" 2>&1`; + my $output = `cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1`; my $errorlevel = $?; @@ -430,5 +430,5 @@ if ($verbose) { push @param, " -v" }; - my $output = `cd $sandbox && cvs -d $root @param \"$file\" 2>&1`; + my $output = `cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1`; my $errorlevel = $?; @@ -464,5 +464,5 @@ if ($name) { push @param, " $name" }; - my $output = `cd $sandbox && cvs -d $root @param \"$file\" 2>&1`; + my $output = `cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1`; my $errorlevel = $?; @@ -488,5 +488,5 @@ if ($recurse) { push @param, " -R" }; - my $output = `cd $sandbox && cvs -d $root @param \"$file\" 2>&1`; + my $output = `cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1`; my $errorlevel = $?; @@ -527,5 +527,5 @@ my @output_lines = (); - my @raw_output = `cd $sandbox && cvs -d $root @param \"$file\" 2>&1`; + my @raw_output = `cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1`; my $errorlevel = $?; @@ -578,5 +578,5 @@ if ($recurse) { push @param, " -R" }; - my $output = `cd $sandbox && cvs -d $root @param \"$file\" 2>&1`; + my $output = `cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1`; my $errorlevel = $?; @@ -602,5 +602,5 @@ if ($recurse) { push @param, " -R" }; - my $output = `cd $sandbox && cvs -d $root @param \"$file\" 2>&1`; + my $output = `cd \"$sandbox\" && cvs -d $root @param \"$file\" 2>&1`; my $errorlevel = $?; |
From: Rob H. <for...@us...> - 2002-02-25 23:52:28
|
Update of /cvsroot/sandweb/sandweb/lib/SandWeb In directory usw-pr-cvs1:/tmp/cvs-serv25608/lib/SandWeb Modified Files: Repository.pm Log Message: VCS subsystem can now handle spaces in directories, and should fully work with the multi-repo stuff ( looks like everything below the first directory was not working properly :P ) Index: Repository.pm =================================================================== RCS file: /cvsroot/sandweb/sandweb/lib/SandWeb/Repository.pm,v retrieving revision 1.23 retrieving revision 1.24 diff -U2 -r1.23 -r1.24 --- Repository.pm 20 Feb 2002 05:14:31 -0000 1.23 +++ Repository.pm 25 Feb 2002 23:52:24 -0000 1.24 @@ -53,5 +53,5 @@ my $root = $self->get_root(); my $sandbox = $self->get_sandbox(); - my %return = {}; + my %return; my $vcs = SandWeb::Repository::CVS->new( root => $root, @@ -80,5 +80,5 @@ my $root = $self->get_root(); my $sandbox = $self->get_sandbox(); - my %return = {}; + my %return; my $vcs = SandWeb::Repository::CVS->new( root => $root, @@ -108,5 +108,5 @@ my $root = $self->get_root(); my $sandbox = $self->get_sandbox(); - my %return = {}; + my %return; my $vcs = SandWeb::Repository::CVS->new(root => $root, sandbox => $sandbox); @@ -163,5 +163,5 @@ my $root = $self->get_root(); my $sandbox = $self->get_sandbox(); - my %return = {}; + my %return; my $vcs = SandWeb::Repository::CVS->new( root => $root, @@ -194,5 +194,5 @@ my $root = $self->get_root(); my $sandbox = $self->get_sandbox(); - my %return = {}; + my %return; my $vcs = SandWeb::Repository::CVS->new( @@ -226,5 +226,5 @@ my $root = $self->get_root(); my $sandbox = $self->get_sandbox(); - my %return = {}; + my %return; my $vcs = SandWeb::Repository::CVS->new(root => $root, sandbox => $sandbox); @@ -250,5 +250,5 @@ my $root = $self->get_root(); my $sandbox = $self->get_sandbox(); - my %return = {}; + my %return; my $vcs = SandWeb::Repository::CVS->new(root => $root, sandbox => $sandbox); @@ -270,5 +270,5 @@ my $root = $self->get_root(); my $sandbox = $self->get_sandbox(); - my %return = {}; + my %return; my $vcs = SandWeb::Repository::CVS->new(root => $root, sandbox => $sandbox); @@ -289,5 +289,5 @@ my $root = $self->get_root(); my $sandbox = $self->get_sandbox(); - my %return = {}; + my %return; my $vcs = SandWeb::Repository::CVS->new(root => $root, sandbox => $sandbox); @@ -308,5 +308,5 @@ my $root = $self->get_root(); my $sandbox = $self->get_sandbox(); - my %return = {}; + my %return; my $vcs = SandWeb::Repository::CVS->new( root => $root, @@ -350,5 +350,5 @@ my $root = $self->get_root(); my $sandbox = $self->get_sandbox(); - my %return = {}; + my %return; my $vcs = SandWeb::Repository::CVS->new(root => $root, sandbox => $sandbox); @@ -367,5 +367,5 @@ my $root = $self->get_root(); my $sandbox = $self->get_sandbox(); - my %return = {}; + my %return; my $vcs = SandWeb::Repository::CVS->new(root => $root, sandbox => $sandbox); @@ -387,5 +387,5 @@ my $root = $self->get_root(); my $sandbox = $self->get_sandbox(); - my %return = {}; + my %return; my $vcs = SandWeb::Repository::CVS->new(root => $root, sandbox => $sandbox); @@ -409,5 +409,5 @@ my $root = $self->get_root(); my $sandbox = $self->get_sandbox(); - my %return = {}; + my %return; my $vcs = SandWeb::Repository::CVS->new(root => $root, sandbox => $sandbox); @@ -465,5 +465,5 @@ my $root = $self->get_root(); my $sandbox = $self->get_sandbox(); - my %return = {}; + my %return; my $vcs = SandWeb::Repository::CVS->new(root => $root, sandbox => $sandbox); @@ -492,5 +492,5 @@ my $root = $self->get_root(); my $sandbox = $self->get_sandbox(); - my %return = {}; + my %return; my $vcs = SandWeb::Repository::CVS->new(root => $root, sandbox => $sandbox); @@ -520,20 +520,23 @@ my $root = $self->get_root(); my $sandbox = $self->get_sandbox(); - my %return = {}; - my $vcs = SandWeb::Repository::CVS->new(root => $root, - sandbox => $sandbox); + my %return; + + my $vcs = SandWeb::Repository::CVS->new( + root => $root, + sandbox => $sandbox, + ); if ($repo_type eq 'CVS') { - %return = $vcs->update(recurse => $recurse, - reset => $reset, - prune => $prune, - clobber => $clobber, - directories => $directories, - rev => $rev, - date => $date, - merge => $merge, - file => $file ); + %return = $vcs->update( + recurse => $recurse, + reset => $reset, + prune => $prune, + clobber => $clobber, + directories => $directories, + rev => $rev, + date => $date, + merge => $merge, + file => $file ); } - return %return; } @@ -550,5 +553,5 @@ my $root = $self->get_root(); my $sandbox = $self->get_sandbox(); - my %return = {}; + my %return; my $vcs = SandWeb::Repository::CVS->new(root => $root, sandbox => $sandbox); @@ -576,5 +579,5 @@ my $root = $self->get_root(); my $sandbox = $self->get_sandbox(); - my %return = {}; + my %return; my $vcs = SandWeb::Repository::CVS->new(root => $root, sandbox => $sandbox); |
From: Rob H. <for...@us...> - 2002-02-25 23:52:27
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv25608/bin Modified Files: sandweb.cgi Log Message: VCS subsystem can now handle spaces in directories, and should fully work with the multi-repo stuff ( looks like everything below the first directory was not working properly :P ) Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.223 retrieving revision 1.224 diff -U2 -r1.223 -r1.224 --- sandweb.cgi 25 Feb 2002 23:27:32 -0000 1.223 +++ sandweb.cgi 25 Feb 2002 23:52:24 -0000 1.224 @@ -1652,10 +1652,10 @@ root => $repo_root, repo_type => $repo_type, - sandbox => "$users_dir/$username/$module_name", + sandbox => "$users_dir/$username/$module_name/$location", ); $log->debug("Repo name: $repo_name"); $log->debug("Repo root: $repo_root"); - $log->debug("VCS sandbox: $users_dir/$username/$module_name"); + $log->debug("VCS sandbox: $users_dir/$username/$module_name/$location"); $log->debug("Repo type: $repo_type"); $log->debug("Filename(s): @filename"); |
From: Rob H. <for...@us...> - 2002-02-25 23:27:35
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv18994/bin Modified Files: sandweb.cgi Log Message: fixed space prob in vcs_output Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.222 retrieving revision 1.223 diff -U2 -r1.222 -r1.223 --- sandweb.cgi 25 Feb 2002 23:17:58 -0000 1.222 +++ sandweb.cgi 25 Feb 2002 23:27:32 -0000 1.223 @@ -1680,6 +1680,6 @@ FILENAME => @filename, PROGNAME => $progname, - VCS_OUTPUT => "@vcs_output", - VCS_ERROR => "@vcs_error", + VCS_OUTPUT => join('', @vcs_output), + VCS_ERROR => join('', @vcs_error), ); @@ -1733,6 +1733,6 @@ FILENAME => "@filename", PROGNAME => $progname, - VCS_OUTPUT => "@vcs_output", - VCS_ERROR => "@vcs_error", + VCS_OUTPUT => join('', @vcs_output), + VCS_ERROR => join('', @vcs_error), ); @@ -1835,6 +1835,6 @@ #FILENAME => "@filename", PROGNAME => $progname, - VCS_OUTPUT => "@vcs_output", - VCS_ERROR => "@vcs_error", + VCS_OUTPUT => join('', @vcs_output), + VCS_ERROR => join('', @vcs_error), ); print CGI::header( -cookie => $ck_auth ); |