Skip to content

Commit

Permalink
Make sure that all builder methods that use session sare set to be lazy.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Feb 5, 2010
1 parent 9f06085 commit d1572c4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/WebGUI/Asset.pm
Expand Up @@ -286,6 +286,7 @@ has [qw/parentId lineage
has className => (
is => 'ro',
builder => '_build_className',
lazy => 1,
init_arg => undef,
);
sub _build_className {
Expand Down
2 changes: 2 additions & 0 deletions lib/WebGUI/Asset/Event.pm
Expand Up @@ -41,11 +41,13 @@ property startDate => (
label => ['start date', 'Asset_Event'],
fieldType => "Date",
builder => '_defaultMysqlDate',
lazy => 1,
);
property endDate => (
label => ['end date', 'Asset_Event'],
fieldType => "Date",
builder => '_defaultMysqlDate',
lazy => 1,
);
sub _defaultMysqlDate {
my $self = shift;
Expand Down
1 change: 1 addition & 0 deletions lib/WebGUI/Asset/File/Image.pm
Expand Up @@ -30,6 +30,7 @@ property thumbnailSize => (
hoverHelp => ['Thumbnail size description', 'Asset_Image'],
fieldType => 'integer',
builder => '_default_thumbnailSize',
lazy => 1,
);
sub _default_thumbnailSize {
my $self = shift;
Expand Down
1 change: 1 addition & 0 deletions lib/WebGUI/Asset/Template.pm
Expand Up @@ -64,6 +64,7 @@ property parser => (
fieldType => 'selectBox',
lazy => 1,
builder => '_default_parser',
lazy => 1,
);
sub _default_parser {
my $self = shift;
Expand Down
3 changes: 3 additions & 0 deletions lib/WebGUI/Asset/Wobject/Calendar.pm
Expand Up @@ -232,6 +232,7 @@ property listViewPageInterval => (
label => ['editForm listViewPageInterval label', 'Asset_Calendar'],
hoverHelp => ['editForm listViewPageInterval description', 'Asset_Calendar'],
unitsAvailable => [ qw( days weeks months years ) ],
lazy => 1,
);
sub _listViewPageInterval_builder {
my $self = shift;
Expand All @@ -250,6 +251,7 @@ property icalFeeds => (
property icalInterval => (
fieldType => "interval",
builder => '_icalInterval_builder',
lazy => 1,
tab => "display",
label => ['editForm icalInterval label', 'Asset_Calendar'],
hoverHelp => ['editForm icalInterval description', 'Asset_Calendar'],
Expand All @@ -262,6 +264,7 @@ sub _icalInterval_builder {
property workflowIdCommit => (
fieldType => "workflow",
builder => '_workflowIdCommit_builder',
lazy => 1,
tab => 'security',
label => ['editForm workflowIdCommit label', 'Asset_Calendar'],
hoverHelp => ['editForm workflowIdCommit description', 'Asset_Calendar'],
Expand Down

0 comments on commit d1572c4

Please sign in to comment.