Commit graph

123 commits

Author SHA1 Message Date
Colin Kuskie
4ecc8dce2a AssetLineage should throw exceptions. 2010-05-09 15:27:39 -07:00
Colin Kuskie
3e168b1c87 Trap calls to newById inside getParent. StoryArchive should use cloneFromDb. 2010-05-05 11:50:31 -07:00
Colin Kuskie
3b6c4e8372 Set the default state of the created object to "published". 2010-04-20 12:14:28 -07:00
Doug Bell
5c36973aa0 cache: s/flush/clear/ 2010-04-19 19:13:10 -05:00
Graham Knop
c4204eff89 clean up more uses of ->get 2010-04-19 18:57:01 -05:00
Doug Bell
165be5b389 remove eval{} from caching code 2010-04-19 18:41:13 -05:00
Graham Knop
2400f19099 Merge branch 'master' into WebGUI8 2010-04-13 07:50:02 -05:00
Colin Kuskie
22bbf2e23c Check the Asset, not the class, and make sure it is loaded. 2010-03-23 11:54:19 -07:00
Colin Kuskie
88ec09d279 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. 2010-03-19 14:31:49 -07:00
Colin Kuskie
7e7bc9ca20 Label loop inside getLineage. Drop a clause from getLineageSql, since we can use LIKE to make sure the lineage does not include the parent. Move getLineage tests to the top since downstream tests depend on getting assets in lineage order. 2010-01-26 12:55:40 -08:00
Colin Kuskie
eb60168627 sessionification of AssetLineage, conversion to use moose accessors. 2010-01-26 07:25:51 -08:00
Colin Kuskie
de34ab3b95 fix getLineage. All tests in t/Asset/AssetTrash.t are passing. 2010-01-22 15:25:50 -08:00
Colin Kuskie
a00d173fe6 Rough conversion of Shortcut to Moose, so Asset cleanup works. Fix a bug in getLineage. Update tests for get_tables. 2010-01-20 19:12:04 -08:00
Colin Kuskie
caa1f330b8 Fix newByPropertyHashRef, which is required for class dispatch. Add tests. Fix addChild to use newByPropertyHashRef. 2010-01-20 18:44:48 -08:00
Colin Kuskie
41b741d41b Convert Snippet to moose accessors. 2010-01-19 11:34:23 -08:00
Colin Kuskie
b7761ce50e Move getParent over to using Moose attributes. 2010-01-15 16:59:34 -08:00
Colin Kuskie
d47438d9ae More _properties work, converted into proper methods. 2010-01-14 16:41:23 -08:00
Colin Kuskie
86b5157e4d Hand backport a patch from master. Do not cache the parent when adding a child. 2010-01-13 11:16:16 -08:00
Colin Kuskie
22823339ab Sessionize addChild 2010-01-13 10:30:29 -08:00
Colin Kuskie
ce3edcf743 Move get_tables from Meta/Class into Meta/Asset. s/getTables/meta->get_tables/; 2010-01-04 15:34:24 -08:00
Colin Kuskie
49bd7f5032 newByDynamicClass changed to newById 2009-12-27 19:08:15 -08:00
Colin Kuskie
1eeb76e96f newByLineage should log its own error. Fixes bug #11192 2009-11-02 18:30:45 -08:00
Colin Kuskie
72bd5d5f16 Clarify the POD for addChild. 2009-10-26 13:39:02 -07:00
JT Smith
95ecfc0adf added getTables() 2009-10-22 15:03:38 -05:00
Graham Knop
60a4a9b140 mark $session->datetime->time as deprecated and remove its use from core code 2009-10-05 20:56:37 -05:00
Doug Bell
5c03cfbfbe fixed #10544: Child assets under uncommitted parents 2009-10-02 01:03:34 -05:00
JT Smith
ebb6134c2d bug fixes 2009-09-25 22:50:59 -05:00
JT Smith
ccff9c7014 Converted all existing uses of cache. 2009-09-25 22:24:33 -05:00
JT Smith
af705232a8 added exceptions, docs, and removed disableCache 2009-09-25 18:41:03 -05:00
Paul Driver
2621f92471 Small bug with the memory leak fix... fixed 2009-08-19 21:37:17 +00:00
Paul Driver
0a0ee3e6df Fixed semi-rare memory leak in getLineage 2009-08-19 20:32:05 +00:00
Colin Kuskie
5e4db3adb4 Provide a framework for CSRF protection, with tests.
Add CSRF protection to Asset editSave, AssetManager, VersionTags and Group operations.
2009-07-06 16:58:57 +00:00
Colin Kuskie
8bcfa301b3 Make the AssetManager use Asset*.pm for cut, copy, paste, rank and duplicate. 2009-06-25 14:40:22 +00:00
Colin Kuskie
35749ff8c6 Add a progress bar for reordering rank in the Asset Manager. 2009-06-19 18:06:46 +00:00
Colin Kuskie
e518dbe1b3 Instrument www_demote, www_promote, demote, promote and swapRank with ProgressBar code. 2009-06-19 15:34:31 +00:00
Graham Knop
269227aa07 setParent shouldn't check user permissions, only www_ methods should 2009-04-03 19:26:13 +00:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Graham Knop
ede922e060 fix small issue in addChild 2009-02-06 01:04:27 +00:00
Martin Kamerbeek
1dde85aad0 Merging fixed #8775: Miscount in number of replies in CS Thread. 2008-12-03 15:39:33 +00:00
Colin Kuskie
1c8dbfe5b4 fix POD related to asset mixin classes, Asset*.pm 2008-11-24 22:22:39 +00:00
Graham Knop
3cb07d4152 fix lineage cache clearing, syntax warning, db cache storable usage 2008-11-04 22:47:11 +00:00
Graham Knop
b7937249d6 sped up lineage changes significantly 2008-11-04 22:46:55 +00:00
Graham Knop
d529da257d improve documentation of lineage iterator 2008-09-23 21:32:40 +00:00
Graham Knop
a2757494af use Module::Find instead of enumerating over the files 2008-09-17 15:38:01 +00:00
Frank Dillon
1eeb3e0eea Fixed a bug in getLineageSql which was returning an empty array ref in certain cases. 2008-09-07 16:30:17 +00:00
Graham Knop
29a419e1eb added: getLineageIterator method to simplify working on large sets of assets 2008-09-05 22:14:04 +00:00
Frank Dillon
102fb221f9 Added a new method getLineageSql() which is called the same was that getLineage is called but returns the SQL that is generated by the getLineage call rather than and arrayRef of assetIds or instantiated assets. This method is now called by getLineage. 2008-09-05 17:47:56 +00:00
Chris Nehren
a57f091370 Fix the "get all assets" code example in getLineage to show that getRoot needs a $session. 2008-07-03 19:33:41 +00:00
JT Smith
f88cf54053 shelves can see skus under them as well as by keyword 2008-05-18 17:23:03 +00:00
Graham Knop
74381281fa fixed: getLineage with joinClass only joins first table in definition 2008-04-10 22:15:09 +00:00