зеркало из https://github.com/mozilla/pjs.git
fixes for new treestate admin code.
This commit is contained in:
Родитель
981405214e
Коммит
bebc55ba48
|
@ -7,8 +7,8 @@
|
||||||
# columns from being shown on the default pages.
|
# columns from being shown on the default pages.
|
||||||
|
|
||||||
|
|
||||||
# $Revision: 1.21 $
|
# $Revision: 1.22 $
|
||||||
# $Date: 2002-05-01 01:52:53 $
|
# $Date: 2002-05-03 02:21:52 $
|
||||||
# $Author: kestes%walrus.com $
|
# $Author: kestes%walrus.com $
|
||||||
# $Source: /home/jrmuizel/cvs-mirror/mozilla/webtools/tinderbox2/src/bin/admintree.cgi,v $
|
# $Source: /home/jrmuizel/cvs-mirror/mozilla/webtools/tinderbox2/src/bin/admintree.cgi,v $
|
||||||
# $Name: $
|
# $Name: $
|
||||||
|
@ -234,7 +234,9 @@ sub get_current_ignore_builds {
|
||||||
sub format_input_page {
|
sub format_input_page {
|
||||||
my ($tree)= @_;
|
my ($tree)= @_;
|
||||||
my (@build_names) = get_build_names($tree);
|
my (@build_names) = get_build_names($tree);
|
||||||
my (@tree_states) = TreeData::get_all_sorted_tree_states($tree);
|
my (@tree_states) = $TinderHeader::NAMES2OBJS{'TreeState'}->
|
||||||
|
get_all_sorted_setable_tree_states();
|
||||||
|
|
||||||
my ($title) = "Tinderbox Adminstration for Tree: $tree";
|
my ($title) = "Tinderbox Adminstration for Tree: $tree";
|
||||||
my (@out);
|
my (@out);
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# $Revision: 1.4 $
|
# $Revision: 1.5 $
|
||||||
# $Date: 2001-07-20 19:05:19 $
|
# $Date: 2002-05-03 02:21:49 $
|
||||||
# $Author: kestes%walrus.com $
|
# $Author: kestes%walrus.com $
|
||||||
# $Source: /home/jrmuizel/cvs-mirror/mozilla/webtools/tinderbox2/src/lib/TinderHeader/TreeState.pm,v $
|
# $Source: /home/jrmuizel/cvs-mirror/mozilla/webtools/tinderbox2/src/lib/TinderHeader/TreeState.pm,v $
|
||||||
# $Name: $
|
# $Name: $
|
||||||
|
@ -58,7 +58,7 @@ use TinderHeader::BasicTxtHeader;
|
||||||
|
|
||||||
@ISA = qw(TinderHeader::BasicTxtHeader);
|
@ISA = qw(TinderHeader::BasicTxtHeader);
|
||||||
|
|
||||||
$VERSION = ( qw $Revision: 1.4 $ )[1];
|
$VERSION = ( qw $Revision: 1.5 $ )[1];
|
||||||
|
|
||||||
# load the simple name of this module into TinderHeader so we can
|
# load the simple name of this module into TinderHeader so we can
|
||||||
# track the implementations provided.
|
# track the implementations provided.
|
||||||
|
@ -66,4 +66,11 @@ $VERSION = ( qw $Revision: 1.4 $ )[1];
|
||||||
$TinderHeader::NAMES2OBJS{ 'TreeState' } =
|
$TinderHeader::NAMES2OBJS{ 'TreeState' } =
|
||||||
TinderHeader::TreeState->new();
|
TinderHeader::TreeState->new();
|
||||||
|
|
||||||
|
sub get_all_sorted_setable_tree_states {
|
||||||
|
|
||||||
|
my @valid_states = TreeData::get_all_sorted_tree_states();
|
||||||
|
|
||||||
|
return @valid_states;
|
||||||
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
# the current tree state using the bonsai conventions when we have
|
# the current tree state using the bonsai conventions when we have
|
||||||
# implemented it.
|
# implemented it.
|
||||||
|
|
||||||
# $Revision: 1.6 $
|
# $Revision: 1.7 $
|
||||||
# $Date: 2001-08-13 19:49:36 $
|
# $Date: 2002-05-03 02:21:49 $
|
||||||
# $Author: kestes%walrus.com $
|
# $Author: kestes%walrus.com $
|
||||||
# $Source: /home/jrmuizel/cvs-mirror/mozilla/webtools/tinderbox2/src/lib/TinderHeader/TreeState_Bonsai.pm,v $
|
# $Source: /home/jrmuizel/cvs-mirror/mozilla/webtools/tinderbox2/src/lib/TinderHeader/TreeState_Bonsai.pm,v $
|
||||||
# $Name: $
|
# $Name: $
|
||||||
|
@ -50,7 +50,7 @@ use BonsaiData;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$VERSION = ( qw $Revision: 1.6 $ )[1];
|
$VERSION = ( qw $Revision: 1.7 $ )[1];
|
||||||
|
|
||||||
# load the simple name of this module into TinderHeader so we can
|
# load the simple name of this module into TinderHeader so we can
|
||||||
# track the implementations provided.
|
# track the implementations provided.
|
||||||
|
@ -87,5 +87,12 @@ sub savetree_header {
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub get_all_sorted_setable_tree_states {
|
||||||
|
|
||||||
|
my @valid_states = ('Open', 'Closed' );
|
||||||
|
|
||||||
|
return @valid_states;
|
||||||
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче