Commit graph

135 commits

Author SHA1 Message Date
Colin Kuskie
565cf955d7 Merge commit '469c2b72b4' into WebGUI8. All tests passing. 2010-07-01 10:13:22 -07:00
Colin Kuskie
5e502fee53 Merge commit '17ce3572bf' into WebGUI8. All tests passing. 2010-06-30 18:43:27 -07:00
Colin Kuskie
385931aaab Merge commit 'f2e0fb509a' into WebGUI8. Some tests still failing. 2010-06-27 22:32:31 -07:00
Colin Kuskie
08ee8153b3 Document that the whereClause will be prepended with "AND ". 2010-06-22 22:30:38 -07:00
Colin Kuskie
ee179911cf Document that getLineage*'s excludeClasses are appended with wildcards, so sub-classes are also excluded. 2010-06-22 13:27:34 -07:00
Colin Kuskie
73d6ed7800 returnSQL has been superseded by the ability to call getLineageSql directly. 2010-06-21 14:37:04 -07:00
Colin Kuskie
19c2c5fa1c Remove status description from Session/Http, and update all users of setStatus. 2010-06-17 08:18:24 -07:00
Colin Kuskie
2c08b4e712 Fix a bug in getLineageSql, where it would return the empty string. This could cause downstream problems. Fixes bug #11616 2010-06-08 09:22:28 -07:00
Doug Bell
247c607393 fixes for weaken and iterator 2010-06-01 19:37:53 -05:00
Doug Bell
2c75ab27e6 migrate to getLineageIterator to save memory 2010-06-01 16:23:49 -05:00
Colin Kuskie
9059cf5f3f Exception handling for finding children in AssetLineage. 2010-05-21 13:58:07 -07:00
Colin Kuskie
f3c1c0e4a5 Better handling of calling validParent without an asset, somewhere. 2010-05-13 21:10:44 -07:00
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