Aspect to Role renaming
This commit is contained in:
parent
dfc388fe3d
commit
bf1cb7b721
7 changed files with 9 additions and 40 deletions
|
|
@ -16,7 +16,6 @@ package WebGUI::Asset::MatrixListing;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use Tie::IxHash;
|
use Tie::IxHash;
|
||||||
#use base qw(WebGUI::AssetAspect::Comments WebGUI::Asset);
|
|
||||||
use Moose;
|
use Moose;
|
||||||
use WebGUI::Definition::Asset;
|
use WebGUI::Definition::Asset;
|
||||||
extends 'WebGUI::Asset';
|
extends 'WebGUI::Asset';
|
||||||
|
|
@ -117,6 +116,7 @@ property lastUpdated => (
|
||||||
fieldType => 'hidden',
|
fieldType => 'hidden',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
with 'WebGUI::Role::Asset::Comments';
|
||||||
use WebGUI::Utility;
|
use WebGUI::Utility;
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -193,37 +193,6 @@ sub canEdit {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
|
||||||
|
|
||||||
=head2 definition ( session, definition )
|
|
||||||
|
|
||||||
defines asset properties for MatrixListing instances.
|
|
||||||
|
|
||||||
=head3 session
|
|
||||||
|
|
||||||
=head3 definition
|
|
||||||
|
|
||||||
A hash reference passed in from a subclass definition.
|
|
||||||
|
|
||||||
=cut
|
|
||||||
|
|
||||||
sub definition {
|
|
||||||
my $class = shift;
|
|
||||||
my $session = shift;
|
|
||||||
my $definition = shift;
|
|
||||||
my %properties;
|
|
||||||
tie %properties, 'Tie::IxHash';
|
|
||||||
my $i18n = WebGUI::International->new($session, "Asset_MatrixListing");
|
|
||||||
%properties = (
|
|
||||||
);
|
|
||||||
push(@{$definition}, {
|
|
||||||
className=>'WebGUI::Asset::MatrixListing',
|
|
||||||
properties=>\%properties
|
|
||||||
});
|
|
||||||
return $class->next::method($session, $definition);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
=head2 duplicate
|
=head2 duplicate
|
||||||
|
|
|
||||||
|
|
@ -52,8 +52,8 @@ property isFeatured => (
|
||||||
);
|
);
|
||||||
|
|
||||||
with 'WebGUI::Role::Asset::AlwaysHidden';
|
with 'WebGUI::Role::Asset::AlwaysHidden';
|
||||||
with 'WebGUI::AssetAspect::Subscribable';
|
with 'WebGUI::Role::Asset::Subscribable';
|
||||||
with 'WebGUI::AssetAspect::Comments';
|
with 'WebGUI::Role::Asset::Comments';
|
||||||
|
|
||||||
use WebGUI::International;
|
use WebGUI::International;
|
||||||
use WebGUI::Utility;
|
use WebGUI::Utility;
|
||||||
|
|
|
||||||
|
|
@ -320,7 +320,7 @@ property defaultFilesPerPage => (
|
||||||
label => [ 'defaultFilesPerPage label' , 'Asset_Gallery'],
|
label => [ 'defaultFilesPerPage label' , 'Asset_Gallery'],
|
||||||
hoverHelp => [ 'defaultFilesPerPage description' , 'Asset_Gallery'],
|
hoverHelp => [ 'defaultFilesPerPage description' , 'Asset_Gallery'],
|
||||||
);
|
);
|
||||||
with 'WebGUI::AssetAspect::RssFeed';
|
with 'WebGUI::Role::Asset::RssFeed';
|
||||||
|
|
||||||
|
|
||||||
use JSON;
|
use JSON;
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ property approvalWorkflowId => (
|
||||||
label => ['approval workflow', 'Asset_StoryArchive'],
|
label => ['approval workflow', 'Asset_StoryArchive'],
|
||||||
hoverHelp => ['approval workflow help', 'Asset_StoryArchive'],
|
hoverHelp => ['approval workflow help', 'Asset_StoryArchive'],
|
||||||
);
|
);
|
||||||
with 'WebGUI::AssetAspect::RssFeed';
|
with 'WebGUI::Role::Asset::RssFeed';
|
||||||
|
|
||||||
use WebGUI::International;
|
use WebGUI::International;
|
||||||
use WebGUI::Utility;
|
use WebGUI::Utility;
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ property storyTemplateId => (
|
||||||
namespace => 'Story',
|
namespace => 'Story',
|
||||||
default => 'TbDcVLbbznPi0I0rxQf2CQ',
|
default => 'TbDcVLbbznPi0I0rxQf2CQ',
|
||||||
);
|
);
|
||||||
with 'WebGUI::AssetAspect::RssFeed';
|
with 'WebGUI::Role::Asset::RssFeed';
|
||||||
|
|
||||||
|
|
||||||
use WebGUI::International;
|
use WebGUI::International;
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ property hasTerms => (
|
||||||
maxlength => 255,
|
maxlength => 255,
|
||||||
);
|
);
|
||||||
|
|
||||||
with 'WebGUI::AssetAspect::RssFeed';
|
with 'WebGUI::Role::Asset::RssFeed';
|
||||||
use WebGUI::Macro;
|
use WebGUI::Macro;
|
||||||
use XML::FeedPP;
|
use XML::FeedPP;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -181,8 +181,8 @@ property filterCode => (
|
||||||
label => ['filter code', 'Asset_WikiMaster'],
|
label => ['filter code', 'Asset_WikiMaster'],
|
||||||
hoverHelp => ['filter code description', 'Asset_WikiMaster'],
|
hoverHelp => ['filter code description', 'Asset_WikiMaster'],
|
||||||
);
|
);
|
||||||
with 'WebGUI::AssetAspect::Subscribable';
|
with 'WebGUI::Role::Asset::Subscribable';
|
||||||
with 'WebGUI::AssetAspect::RssFeed';
|
with 'WebGUI::Role::Asset::RssFeed';
|
||||||
|
|
||||||
use WebGUI::International;
|
use WebGUI::International;
|
||||||
use WebGUI::Utility;
|
use WebGUI::Utility;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue