rework how validParent works, and where it is checked. Add an explicit check for it in addChild, and remove a bunch of overridden addChild methods.

This commit is contained in:
Colin Kuskie 2010-03-19 14:31:49 -07:00
parent a8496c4d15
commit 88ec09d279
12 changed files with 78 additions and 110 deletions

View file

@ -708,6 +708,18 @@ sub setComment {
);
}
#-------------------------------------------------------------------
=head2 valid_parent_classes
Restrict valid parents to GalleryAlbums and Shortcuts.
=cut
sub valid_parent_classes {
return [qw/WebGUI::Asset::Wobject::GalleryAlbum WebGUI::Asset::Shortcut/];
}
#----------------------------------------------------------------------------
=head2 view ( )