Commit graph

11110 commits

Author SHA1 Message Date
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
Doug Bell
538dc2a862 process non-TT templates before including them 2011-05-27 15:23:52 -05:00
Paul Driver
7b796ed76e Check permissions in account plugin 2011-05-25 15:44:46 -05:00
Paul Driver
d450ded7a1 fixed #12142: Copy fails on imported threads 2011-05-25 10:51:10 -05:00
Colin Kuskie
90b37da740 Fix more i18n issues with the RenderThingData macro. Addresses bug #12141 2011-05-25 08:49:12 -07:00
Colin Kuskie
595660e9e4 Tests for templateId and URL handling, some i18n for the RenderThingData macro. 2011-05-24 15:23:32 -07:00
Colin Kuskie
8bc944d526 Prevent the PayPal standard driver from being abused. Update POD and comments in several Shop files. Fix form labels for PayPal Express checkout driver. Fix a niggling bug with updating a transaction with a cart, twice. Fixes bug #12140.
commit cef8c5bde10f793db0890dcfd18cbf20b0e69c90
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Tue May 24 11:52:48 2011 -0700

    Build a Shop::Transaction.

commit c386079ac29fc70c1cc63d0c2844511ce9db553e
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Tue May 24 11:34:13 2011 -0700

    Pull a session out of the object.

commit 59d780eb0ffcc82572491f85f08eb4ac04cab109
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Tue May 24 11:15:05 2011 -0700

    Rework PayPalStd driver to create transaction before sending the user off to PayPal.

commit cd2683aa8595875f7c501f29c622abaf350e90f6
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Tue May 24 11:14:19 2011 -0700

    Fix some comments to be more cleanly readable.

commit cf1fecfb916906c4d8ec8d33bd85c59b0aea3b7c
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Tue May 24 11:13:52 2011 -0700

    Make the transaction optional when displaying a payment error.

commit f3c949e03a18ac513938f2ed483002c5304663d5
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Mon May 23 19:19:56 2011 -0700

    Remove dead code.

commit 5ddcb49f094fd054f79da38c4a95dd86c55a157f
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Thu May 19 11:31:15 2011 -0700

    If a transaction is updated with a cart object, remove all transationItems from the transaction before adding new ones.

commit 3315cb30a5c1fd4d583ce352cbc9022e52544404
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Thu May 19 11:30:58 2011 -0700

    Remove duplicate entries from ExpressCheckout i18n

commit b46d5af528d7223d12ecbed383e798cfc376ad2a
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Mon May 23 16:07:33 2011 -0700

    Fix the version number of the PayPal API we send.  Add the serialized request to the log file.  Fix i18n labels so it's clear which username and password to use.

commit 1604d375822eb013c633b72993fa524703a72127
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Wed May 18 15:50:42 2011 -0700

    Fix copy/paste errors from other i18n modules into ExpressCheckout.

commit f2c958fc7128348a18a005bfbadf83457861d6e2
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Wed May 18 11:26:15 2011 -0700

    Update out of date POD about checking out.

commit 61ca80b15701733a1a7c7eae5d825b161e0c71c1
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Mon May 23 16:05:09 2011 -0700

    Fix documentation in appendCartVariables, and return the hash instead of $self.

commit d3b7341c44c924f395f8594c8ae77d8187170c9f
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Mon May 23 16:03:20 2011 -0700

    Remove variables that were not being used.

commit 2913f96182a7630bce01998bb022d3ebf4842171
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Mon May 16 21:05:54 2011 -0700

    Pull isRecurring directly from the Cart if creating/updating a transaction from one.
2011-05-24 11:57:16 -07:00
Paul Driver
ca08cc0984 Explict failure return 2011-05-23 13:06:33 -05:00
Paul Driver
de55b02828 Durr, I are frodiwht. I are code. 2011-05-23 12:58:18 -05:00
Paul Driver
edcf276a2f Check the return value of IKC call to spectre 2011-05-23 12:53:21 -05:00
Scott Walters
9e557d4a7d The text of the error message might be useful in the stack trace. 2011-05-22 23:57:08 -04:00
Scott Walters
6a6fff613f Fixing the var() deprecation crutch. 2011-05-22 21:03:45 -04:00