Commit graph

11121 commits

Author SHA1 Message Date
Colin Kuskie
94761c46e4 Fix whitespace problems with POD in Session/Response 2011-07-27 22:21:21 -07:00
Colin Kuskie
94928825f2 Fix whitespace problem with POD in Asset/Shortcut 2011-07-27 22:20:15 -07: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
Doug Bell
5736e5eb3a refactor www_add/www_edit to fix existing www_edit overrides
If you previously overrode www_edit to create a template, you must
instead override getEditTemplate and return your template from there.

Make sure to set your style template correctly.
2011-07-12 20:37:00 -05:00
Doug Bell
d15891dbb9 fix template parser and attachments fields 2011-07-06 19:16:01 -05:00
Doug Bell
cc26d97805 fix namespace issues with templates 2011-07-06 18:27:33 -05:00
Graham Knop
3db4021a46 allow upgrading a specific site or list of sites 2011-07-05 09:46:58 -05:00
Graham Knop
3929d16adb convert diskUsage to WebGUI::Command 2011-07-05 09:21:13 -05:00
Graham Knop
1f201260ba remove session from WebGUI::SQL 2011-07-05 09:05:36 -05:00
Graham Knop
4959bfc979 remove WebGUI::Config->readAllConfigs 2011-07-05 08:40:13 -05:00
Graham Knop
c4af0e33df safer asset reading sql and better parameter validation 2011-07-05 08:35:26 -05:00
Graham Knop
caf9efc784 move autoflush to better location 2011-07-05 07:39:41 -05:00
Graham Knop
279d0c3d30 remove useless option from changeIobStatus 2011-07-04 12:15:32 -05:00
Graham Knop
6d4d1af28f convert classLoadTest to WebGUI::Command 2011-07-04 12:15:14 -05: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
ampli
ebbbeb6609 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-28 03:34:24 +03:00
Doug Bell
f797429b5f clarify docs 2011-06-24 15:09:25 -05:00
Doug Bell
9a90ad6d2f add forms to templates to work directly with FormBuilder objects 2011-06-24 15:08:51 -05:00
Doug Bell
199e2240a7 Revert "allow SSLPROXY header again"
This reverts commit e8d1fa0056.

SSLPROXY should be handled by using Plack::Middleware::ReverseProxy and
setting the X-Forwarded-Proto http header to "https"
2011-06-23 17:46:16 -05:00
Doug Bell
e8d1fa0056 allow SSLPROXY header again 2011-06-23 17:35:58 -05:00
Doug Bell
b1660fe76b document that tableKey is not allowed to have fieldType 2011-06-23 13:07:19 -05:00
Doug Bell
7f47927325 use a default label instead of requiring one 2011-06-23 13:02:27 -05: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
02c0da33e4 Merge remote-tracking branch 'upstream/WebGUI8' into 8
Conflicts:
	docs/previousVersion.sql
2011-06-17 20:15:24 -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
Doug Bell
1d23bcf846 Merge pull request #13 from haarg/template_proxy
Template proxy to prevent modifying properties inside templates
2011-06-16 16:06:20 -07:00
Graham Knop
b177bb5c3f convert changeIobStatus.pl to module 2011-06-16 01:56:21 -05:00
Graham Knop
0a09ea4895 add automatic proxy system for passing objects to Template::Toolkit 2011-06-15 18:19:16 -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
Colin Kuskie
8b13c387be Add missing i18n for Thingy RFE for unique fields. 2011-06-13 16:05:02 -07:00
Doug Bell
4557e2088a handle reset problems more gracefully 2011-06-13 17:53:26 -05:00
Colin Kuskie
8b3877c34e Update the default CS notification template. 2011-06-13 13:46:01 -07:00
Doug Bell
6dfeb6ef1a add _new flag to Crud objects
This flag allows you to know when an object has been newly-created, so you
can check in the BUILD sub and perform appropriate actions.
2011-06-13 14:47:49 -05:00
Paul Driver
1ff1ffe423 rfe #12159: Asset Manager sort preferences 2011-06-13 13:25:01 -05:00
Colin Kuskie
328826e3f7 Create a fake item to send to PayPal for shipping, so it can be covered by shop credit. Fixes bug #12158. 2011-06-13 11:03:29 -07:00
Colin Kuskie
21bcd70980 Fix a syntax warning with multiple i18n objects in PP::ExpressCheckout 2011-06-06 19:53:22 -07:00
Colin Kuskie
e2a218e6f5 Set the locale in the correct communication with PayPal. 2011-06-06 10:48:20 -07:00
Colin Kuskie
3c0cf0f1a5 Pass the user's locale along to PayPal. If it is supported, then the checkout screen on PayPal will be in the user's locale. Fixes bug #12119. 2011-06-06 10:32:14 -07:00
Colin Kuskie
b21a6e331b PayPal does not consider +5.00 to be the same as 5.00. Remove the sign from the number. Fixes bug #12152. 2011-06-06 09:11:05 -07:00
Doug Bell
3151a029de we don't always have an asset, so use the page url instead 2011-06-03 20:50:19 -05:00
Doug Bell
664e7686c6 fix bugs revealed by Test::Class tests 2011-06-02 19:44:06 -05:00
Chris Hanson
65a981f8ab Corrected leaveVersionTag creating a version tag: 12138 2011-06-01 13:52:40 -05:00
Colin Kuskie
197f94c0e5 Fix gateway url handling in the RenderThingData macro. Fixes one part of #12133. 2011-05-31 21:27:53 -07:00
Colin Kuskie
ab1b6aa4fd Fix photo JSON handling in the story, where the data is cached incorrectly. Fixes bug #12136 2011-05-31 15:16:02 -07:00
Colin Kuskie
b872694390 Remove old debug content. 2011-05-31 15:14:39 -07:00
Paul Driver
181f21a0b7 WebGUI::Event 2011-05-31 16:13:09 -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
Doug Bell
1de9a12365 add POD to WebGUI::Admin::Plugin and rename canUse to canView 2011-05-27 17:08:25 -05:00
Doug Bell
2751e4fe93 GalleryFile handles its own template 2011-05-27 16:15:24 -05:00