projects: consolidate and refactor project archive code
commit08a07e21c2ea7947851efd44a1102d71e0047317
authorKyle J. McKay <mackyle@gmail.com>
Sat, 12 Nov 2016 01:57:26 +0000 (11 17:57 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 12 Nov 2016 01:57:26 +0000 (11 17:57 -0800)
tree977f6ea763e238a199c0f5a24a32b46933449b76
parentb265d491a1c5287ec7594c42d95ebfd125816a67
projects: consolidate and refactor project archive code

Create a new archive_and_delete method on the Project
class that contains the original logic from delproj.cgi
which is capable of handling multiple deletions of
same-named projects.

Replace the delproj.cgi logic with a call to the new
function.

Replace the inferior logic in trash-project.pl with a
call to the new function.  As a result, trash-project.pl
can now handle multiple deletions of same-named projects.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Girocco/Project.pm
cgi/delproj.cgi
toolbox/trash-project.pl