Commit graph

2841 commits

Author SHA1 Message Date
Colin Kuskie
56ca2b0461 Fix some warnings under perl 5.14.2 2012-01-07 13:39:03 -08:00
Colin Kuskie
b323f74121 Update copyright notice 2011-12-28 11:30:38 -08:00
Colin Kuskie
ba345e221b Fixes for the class => className conversion, and addSave/editSave for new assets. 2011-12-12 10:32:48 -08:00
Colin Kuskie
d3836cd3ad Fix canEdit for Collaboration. 2011-12-12 10:27:26 -08:00
Colin Kuskie
27f3b3e935 Convert Event edit test to WebGUI::Test::Mechanize, and fix issues with adding events to a calendar. 2011-12-12 10:26:05 -08:00
Colin Kuskie
5f9f1e6dec Remove all unnecessary usage of SUPER from Assets 2011-12-07 08:26:08 -08:00
Colin Kuskie
f0b59bc52d Fix an i18n namespacing issue in the Navigation. 2011-12-06 13:50:52 -08:00
Colin Kuskie
398c3afdfd Remove old WebGUI::Utility isIn and replace with smart match. 2011-12-05 13:48:08 -08:00
Colin Kuskie
97d9711118 Fix func and form variable naming in the Gallery assets. 2011-12-01 15:23:18 -08:00
Colin Kuskie
17e69a4d80 More deprecated form code. 2011-12-01 14:59:54 -08:00
Colin Kuskie
f0d3f0c52f More deprecated Form code 2011-12-01 14:43:32 -08:00
Colin Kuskie
1777b019a5 Fix a few typos in the deprecated code fix. 2011-11-25 10:52:50 -08:00
Colin Kuskie
bcc81e906c Remove more deprecated Form code. 2011-11-24 14:01:24 -08:00
Colin Kuskie
a2a821822d Merge commit 'v7.10.23' into WebGUI8. Tests need fixing. 2011-11-02 11:12:18 -07:00
Colin Kuskie
9a4703eca0 Set the HTTP status correctly via the new API. 2011-11-01 13:21:31 -07:00
Colin Kuskie
431cd280a4 Merge commit 'v7.10.22' into WebGUI8 2011-10-31 20:13:01 -07:00
Colin Kuskie
4855816a29 Merge commit 'v7.10.21' into WebGUI8. Also, add POD and fix broken tests. 2011-10-27 16:45:19 -07:00
Colin Kuskie
fdb979ca8a Merge commit 'v7.10.20' into WebGUI8 2011-10-26 15:02:51 -07:00
Colin Kuskie
4fea10a1f5 Merge commit 'v7.10.19' into WebGUI8 2011-10-25 20:31:50 -07:00
Colin Kuskie
4bfabb9469 Make version tags mandatory again. 2011-10-25 19:44:58 -07:00
Colin Kuskie
6e5da21f76 Custom edit template for the GalleryAlbum asset. 2011-10-15 18:00:53 -07:00
Colin Kuskie
0ff98ac46d class vs className fix for the Gallery 2011-10-15 17:59:09 -07:00
Colin Kuskie
8317b31031 Strip out unnecessary whitespace. Add enough error handling to test out the Ticket, Token, Ribbon and Badge. 2011-09-30 18:55:02 -07:00
Colin Kuskie
d7218166bb Fix a problem with case sensitivity when in Thingy's getFieldValue. Fixes bug #12231. 2011-09-08 09:53:47 -07:00
Scott Walters
ee121e9460 Mobile template is not being inherited (#12246)
Break get_add_instance out of www_add; subclass it in Layout to
pull mobileTemplateId and mobileStyleTemplateId from the parent
if the parent is also a Layout.
2011-09-07 20:19:50 -04:00
Scott Walters
b05c7ea810 Revert "Mobile template is not being inherited (#12246)"
... per perlDreamer's additional argument for his original design for this

This reverts commit 2628263384.
2011-09-07 20:19:50 -04:00
Scott Walters
2628263384 Mobile template is not being inherited (#12246)
added extra_www_add_properties method to Asset.pm and subclassed it in as
Layout.pm as properties fix-up hook in child for www_add
2011-09-07 15:43:23 -04:00
Colin Kuskie
d40048437c Always take the latest revision of the Asset when updating subscribers, since it will always be locked in a version tag. 2011-08-26 16:44:28 -07:00
Chris Hanson
8ae2457370 fixed AssetReport: "Order the results by" issues (#12227) 2011-08-26 15:51:58 -05:00
Colin Kuskie
4f2905645a Changed urls sent to the asset indexer from using getUrl which prepends the gateway to them. Fixes bug #12229. 2011-08-22 08:04:02 -07:00
Colin Kuskie
428ea58327 Add better support for user profile fields for addresses to the Cart and the EMS. 2011-08-11 16:27:29 -07:00
Doug Bell
1992f33de9 fix adding new WikiPage assets 2011-08-01 16:35:28 -05:00
Peter Christiansen
8b9be1e036 RFE 12207 : www_editThingDataSaveViaAjax should return more info if thingdata fails to be saved.
As it is it returns json with an array of error messages: [{error_message=>"some error"},..]
     But to be able to do anything useful with this. eg. highlighting of form fields whose
     input is erroneous we should also return the fieldName.
     This patch takes care of this.
2011-07-28 22:35:18 +02:00
Scott Walters
e945a94c63 Reworked error handling to propogate errors downward, especially when webgui.debug is set 2011-07-26 03:10:56 -04:00
Peter Christiansen
fd3346586e - added #9668 extension template variable to attachment loops for the following assets:
Article,Post,Event,File,Form::Attachments,Folder
2011-07-21 21:42:17 +02:00
Colin Kuskie
2ce2d7611a Handle the case when the defaultValue is in mysql format for the Thingy, but we have to save in epoch. Fix a timezone offset issue. Fixes bug #12197 2011-07-18 21:26:31 -07:00
Colin Kuskie
5d74b24e97 Remove debug code, replace with line accidently deleted during debug. Fixes bug #12188 2011-07-08 15:23:17 -07:00
Colin Kuskie
e3a4afe5c3 Allow reasonable default dates in ISO 9601 format. Fixes bug #12165. 2011-07-04 14:14:17 -07:00
Scott Walters
28668d4195 Fix for ``unable to call method setting on undefined value'' when turning admin on. Details follow.
It turned out this problem is related to Moose and/or Class::MOP.  I downgraded Moose to 1.25, and Class::MOP to 1.12, and then I got the console just fine when I clicked on "turn admin on".

I managed to operate the Perl debugger on the code, by putting Enbugger->stop at the desired point. I could then debug it interactively.
The stack trace at the point of failure in Search.pm is:
  DB<3> T
$ = WebGUI::Asset::Wobject::Search::_searchRoot_builder(ref(WebGUI::Asset::Wobject::Search)) called from file `constructor WebGUI::Asset::Wobject::Search::new (defined at /home/amir/Downloads/webgui/lib/WebGUI/Asset/Wobject/Search.pm line 214)' line 224
$ = WebGUI::Asset::Wobject::Search::new('WebGUI::Asset::Wobject::Search', ref(HASH)) called from file `/home/amir/Downloads/webgui/lib/WebGUI/Asset.pm' line 1937
$ = WebGUI::Asset::newByPropertyHashRef('WebGUI::Asset', ref(WebGUI::Session), ref(HASH)) called from file `/home/amir/Downloads/webgui/lib/WebGUI/Admin.pm' line 186
@ = WebGUI::Admin::getAssetTypes(ref(WebGUI::Admin)) called from file `/home/amir/Downloads/webgui/lib/WebGUI/Admin.pm' line 279
$ = WebGUI::Admin::getNewContentTemplateVars(ref(WebGUI::Admin)) called from file `/home/amir/Downloads/webgui/lib/WebGUI/Admin.pm' line 811
$ = WebGUI::Admin::www_view(ref(WebGUI::Admin)) called from file `/home/amir/Downloads/webgui/lib/WebGUI/Content/Admin.pm' line 80
$ = WebGUI::Content::Admin::handler(ref(WebGUI::Session)) called from file `/home/amir/Downloads/webgui/lib/WebGUI/Pluggable.pm' line 287
$ = WebGUI::Pluggable::run('WebGUI::Content::Admin', 'handler', ref(ARRAY)) called from file `/home/amir/Downloads/webgui/lib/WebGUI.pm' line 165
$ = eval {...} called from file `/home/amir/Downloads/webgui/lib/WebGUI.pm' line 165
. = WebGUI::handle(ref(WebGUI), ref(WebGUI::Session)) called from file `/home/amir/Downloads/webgui/lib/WebGUI.pm' line 77
@ = WebGUI::call(ref(WebGUI), ref(HASH)) called from file `/usr/lib/perl5/site_perl/5.12.3/Plack/Component.pm' line 39

...
  DB<1> l
38==>    my $session = shift->session;
39    return $session->setting->get("defaultPage");
40 }
41 property classLimiter => (
42                fieldType       => "checkList",
43                default         => undef,
44                vertical        => 1,
45                tab             => "properties",
46                hoverHelp       => ["class limiter description", 'Asset_Search'],
47                label           => ["class limiter", 'Asset_Search'],
  DB<1> p join(",",keys %{$_[0]});
mobileStyleTemplateId,displayTitle,assetSize,classLimiter,newWindow,extraHeadTagsPacked,ownerUserId,extraHeadTags,paginateAfter,isPrototype,isPackage,isHidden,groupIdEdit,encryptPage,inheritUrlFromParent,description,isExportable,lastModified,groupIdView,printableStyleTemplateId

NOTE: "session" is not found there.

With a downgraded Moose:

38==>    my $session = shift->session;
39    return $session->setting->get("defaultPage");
40 }
41 property classLimiter => (
42                fieldType       => "checkList",
43                default         => undef,
44                vertical        => 1,
45                tab             => "properties",
46                hoverHelp       => ["class limiter description", 'Asset_Search'],
47                label           => ["class limiter", 'Asset_Search'],
  DB<1> p  join(",",keys %{$_[0]});
skipNotification,uiLevel,displayTitle,classLimiter,newWindow,synopsis,extraHeadTagsPacked,extraHeadTags,ownerUserId,session,paginateAfter,isHidden,groupIdEdit,encryptPage,inheritUrlFromParent,description,title,printableStyleTemplateId
  DB<2>

("session" is found.)

Amir
2011-07-01 16:31:48 -04:00
Scott Walters
54ae754ebe Repeat ampli's fix (described below) for other occurances on the site.
``The Save buttons in the two first steps didn't work in Chrome.
    According to a hint in the YUI Button documentation about a problem in using
    "submit" as a value of the name attribute, I changed submit button name
    in the two first steps from "submit" to "send".  This solved the problem.''
2011-06-29 19:13:18 -04:00
Colin Kuskie
4027b5b4d8 Perform the check BEFORE saving the Thing properties. Fixes bug #12157. 2011-06-27 21:32:57 -07:00
Doug Bell
0c5acb697b Merge commit 'v7.10.18' into 8
Conflicts:
	docs/gotcha.txt
	docs/previousVersion.sql
	docs/templates.txt
	lib/WebGUI.pm
	lib/WebGUI/Asset/File.pm
	lib/WebGUI/Asset/Story.pm
	lib/WebGUI/Asset/Wobject/Calendar.pm
	lib/WebGUI/Asset/Wobject/Thingy.pm
	lib/WebGUI/AssetExportHtml.pm
	lib/WebGUI/Content/AssetManager.pm
	lib/WebGUI/Group.pm
	lib/WebGUI/Macro/AssetProxy.pm
	lib/WebGUI/Shop/PayDriver/PayPal/PayPalStd.pm
	lib/WebGUI/Storage.pm
	t/Asset/AssetExportHtml.t
	t/Asset/Story.t
	t/Shop/TaxDriver/Generic.t
	t/Storage.t
2011-06-21 16:03:49 -05:00
Doug Bell
4d0e87a8d9 add ticket limits to badge groups. add ticket and badge metadata to templates 2011-06-20 18:39:45 -05:00
Doug Bell
795d88e7e5 Merge commit 'v7.10.17' into 8
Conflicts:
	docs/upgrades/upgrade_7.9.13-7.10.0.pl
	lib/WebGUI.pm
	lib/WebGUI/Asset/Template/TemplateToolkit.pm
	lib/WebGUI/Asset/Wobject/AssetReport.pm
	lib/WebGUI/Asset/Wobject/Thingy.pm
	lib/WebGUI/Form/Captcha.pm
	lib/WebGUI/Macro/AdminBar.pm
	lib/WebGUI/Shop/Cart.pm
	lib/WebGUI/Shop/PayDriver.pm
	lib/WebGUI/Shop/PayDriver/PayPal/ExpressCheckout.pm
	lib/WebGUI/Shop/PayDriver/PayPal/PayPalStd.pm
	lib/WebGUI/Shop/Transaction.pm
	lib/WebGUI/Workflow/Instance.pm
	lib/WebGUI/Workflow/Spectre.pm
	lib/WebGUI/i18n/English/PayDriver.pm
	t/Asset/Asset.t
	t/Asset/AssetExportHtml.t
	t/Asset/AssetLineage.t
	t/Asset/Wobject/Thingy.t
2011-06-17 20:13:41 -05:00
Chris Hanson
995eb34b5a Added ability to pass caller assetId to RenderThingMacro 2011-06-14 14:11:02 -05:00
Colin Kuskie
8978abc471 Restore the patch to fix creating tables unwisely in the Thingy. Fixes numerous bugs due to a bad merge. 2011-06-13 18:03:21 -07:00
Doug Bell
664e7686c6 fix bugs revealed by Test::Class tests 2011-06-02 19:44:06 -05:00
Colin Kuskie
c3652d12a9 Band-aid fix for bad decache of icalFeeds, where it is not deserialized from JSON. Fixes bug #12139. 2011-05-30 11:34:43 -07:00
Scott Walters
819cef2c17 $SIG{__DIE__} is a can of worms. Why doesn't try { } localize it...? 2011-05-22 15:36:40 -04:00
Doug Bell
1fa911029d Merge commit '1966cc02a7'
Conflicts:
	lib/WebGUI/Asset/Wobject/Thingy.pm
2011-05-20 14:58:43 -05:00