change the name attribute to aspect to denote asset level static attributes like tableName, et. al.
This commit is contained in:
parent
5b24340994
commit
d4f31870a3
12 changed files with 72 additions and 43 deletions
|
|
@ -16,9 +16,9 @@ use Tie::IxHash;
|
|||
use WebGUI::Definition::Asset;
|
||||
extends 'WebGUI::Asset';
|
||||
|
||||
attribute assetName => ['assetName', 'Asset_Shortcut'];
|
||||
attribute icon => 'shortcut.gif';
|
||||
attribute tableName => 'Shortcut';
|
||||
aspect assetName => ['assetName', 'Asset_Shortcut'];
|
||||
aspect icon => 'shortcut.gif';
|
||||
aspect tableName => 'Shortcut';
|
||||
|
||||
property shortcutToAssetId => (
|
||||
noFormPost => 1,
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@ use WebGUI::Inbox;
|
|||
use WebGUI::Shop::Cart;
|
||||
use JSON qw{ from_json to_json };
|
||||
|
||||
attribute assetName => ['assetName', 'Asset_Sku'];
|
||||
attribute icon => 'Sku.gif';
|
||||
attribute tableName => 'sku';
|
||||
aspect assetName => ['assetName', 'Asset_Sku'];
|
||||
aspect icon => 'Sku.gif';
|
||||
aspect tableName => 'sku';
|
||||
|
||||
property description => (
|
||||
tab => "properties",
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@ use JSON;
|
|||
use WebGUI::Definition::Asset;
|
||||
extends 'WebGUI::Asset::Sku';
|
||||
|
||||
attribute assetName => ['assetName', 'Asset_Product'];
|
||||
attribute icon => 'product.gif';
|
||||
attribute tableName => 'Product';
|
||||
aspect assetName => ['assetName', 'Asset_Product'];
|
||||
aspect icon => 'product.gif';
|
||||
aspect tableName => 'Product';
|
||||
|
||||
property cacheTimeout => (
|
||||
tab => "display",
|
||||
|
|
|
|||
|
|
@ -23,10 +23,10 @@ use HTML::Packer;
|
|||
use JavaScript::Packer;
|
||||
use CSS::Packer;
|
||||
|
||||
attribute assetName => ['assetName','Asset_Snippet'];
|
||||
attribute uiLevel => 5;
|
||||
attribute icon => 'snippet.gif';
|
||||
attribute tableName => 'snippet';
|
||||
aspect assetName => ['assetName','Asset_Snippet'];
|
||||
aspect uiLevel => 5;
|
||||
aspect icon => 'snippet.gif';
|
||||
aspect tableName => 'snippet';
|
||||
|
||||
property snippet => (
|
||||
fieldType => 'codearea',
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@ use strict;
|
|||
use WebGUI::Definition::Asset;
|
||||
extends 'WebGUI::Asset';
|
||||
|
||||
attribute assetName => ['assetName', 'Asset_Template'],
|
||||
attribute icon => 'template.gif',
|
||||
attribute tableName => 'template',
|
||||
aspect assetName => ['assetName', 'Asset_Template'],
|
||||
aspect icon => 'template.gif',
|
||||
aspect tableName => 'template',
|
||||
|
||||
property template => (
|
||||
fieldType => 'codearea',
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ use WebGUI::SQL;
|
|||
use WebGUI::Utility;
|
||||
use WebGUI::Definition::Asset;
|
||||
extends 'WebGUI::Asset';
|
||||
attribute tableName => 'wobject',
|
||||
attribute assetName => 'Wobject',
|
||||
aspect tableName => 'wobject',
|
||||
aspect assetName => 'Wobject',
|
||||
property description => (
|
||||
fieldType => 'HTMLArea',
|
||||
default => undef,
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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'],
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue