change the name attribute to aspect to denote asset level static attributes like tableName, et. al.

This commit is contained in:
Colin Kuskie 2010-01-25 19:16:05 -08:00
parent 5b24340994
commit d4f31870a3
12 changed files with 72 additions and 43 deletions

View file

@ -18,10 +18,10 @@ use strict;
use WebGUI::Definition::Asset;
extends 'WebGUI::Asset::Wobject';
attribute assetName => ["assetName", 'Asset_Folder'];
attribute uiLevel => 5;
attribute icon => 'folder.gif';
attribute tableName => 'Folder';
aspect assetName => ["assetName", 'Asset_Folder'];
aspect uiLevel => 5;
aspect icon => 'folder.gif';
aspect tableName => 'Folder';
property visitorCacheTimeout => (
tab => "display",

View file

@ -19,9 +19,9 @@ use WebGUI::AdSpace;
use WebGUI::Definition::Asset;
extends 'WebGUI::Asset::Wobject';
attribute assetName => ["assetName", 'Asset_Layout'];
attribute icon => 'layout.gif';
attribute tableName => 'Layout';
aspect assetName => ["assetName", 'Asset_Layout'];
aspect icon => 'layout.gif';
aspect tableName => 'Layout';
property templateId => (
fieldType => "template",

View file

@ -20,9 +20,9 @@ use WebGUI::Utility;
use WebGUI::Definition::Asset;
extends 'WebGUI::Asset::Wobject';
attribute assetName => ["assetName", 'Asset_Navigation'];
attribute icon => 'navigation.gif';
attribute tableName => 'Navigation';
aspect assetName => ["assetName", 'Asset_Navigation'];
aspect icon => 'navigation.gif';
aspect tableName => 'Navigation';
property templateId => (
label => ['1096', 'Asset_Navigation'],

View file

@ -21,9 +21,9 @@ use WebGUI::Storage;
use WebGUI::Exception::Shop;
use WebGUI::Asset::Sku::Product;
attribute assetName => ['assetName', 'Asset_Shelf'];
attribute icon => 'Shelf.gif';
attribute tableName => 'Shelf';
aspect assetName => ['assetName', 'Asset_Shelf'];
aspect icon => 'Shelf.gif';
aspect tableName => 'Shelf';
property templateId => (
fieldType => "template",