Commit graph

16475 commits

Author SHA1 Message Date
Doug Bell
aabb4648d6 allow edit templates without attached forms
This lets authors not use FormBuilder unless they really want to... for now.
2011-08-01 16:35:28 -05:00
Doug Bell
1992f33de9 fix adding new WikiPage assets 2011-08-01 16:35:28 -05:00
Colin Kuskie
37b8d15c0f Add a little POD to the decimated Session/Id.pm module. 2011-08-01 11:09:36 -07:00
Scott Walters
766be8ae7f Docs about how to do error handling from the user app side in WG8 2011-07-29 15:04:34 -04:00
Colin Kuskie
56a0f0dd3d No need to remake the same user object. 2011-07-27 22:46:29 -07:00
Colin Kuskie
04ea5ab533 Update test for change in Definition behavior. Labels/noFormPost is not required any longer. 2011-07-27 22:45:44 -07:00
Colin Kuskie
0b74f25dd1 Update test for changes to the underlying form code, submit => send 2011-07-27 22:40:25 -07:00
Colin Kuskie
b2eda80839 Update a test for WebGUI 8 mock asset creation. 2011-07-27 22:36:26 -07:00
Colin Kuskie
d4cbee1f99 Fix bad i18n in the admin console admin interface template 2011-07-27 22:25:09 -07:00
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
Colin Kuskie
7238b2ae09 Fix a broken test. 2011-07-27 22:16:42 -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
b815228a1b add note about www_edit changes to migration.txt 2011-07-12 22:20:36 -05: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
106d888e97 stop using readAllConfigs in testEnvironment.pl 2011-07-05 08:35:48 -05:00
Graham Knop
c4af0e33df safer asset reading sql and better parameter validation 2011-07-05 08:35:26 -05:00
Graham Knop
6bf9fbb8d9 stop using readAllConfigs in search.pl 2011-07-05 08:34:16 -05:00
Graham Knop
287c26adaa stop using readAllConfigs in spectre 2011-07-05 08:10:39 -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
580cb361cf Merge pull request #16 from ampli/WebGUI8
Web gui8
2011-06-29 17:30:44 -07:00
ampli
f0d5a29e29 findBrokenAssets.pl: redundant argument in WebGUI::Session->open() (#12181)
Problem:
Doesn't work, prints an error message:
Couldn't parse JSON in config file '/'

Fix:
WebGUI::Session->open() is called with $webguiRoot as first arguments, and it should not be supplied any more due to an API change.
2011-06-30 02:59:04 +03: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
841b1f60f7 remove merge remnants 2011-06-16 00:36:45 -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
daa14c594f Ready for 7.10.18 release. 2011-06-13 20:12:02 -07:00
Colin Kuskie
81ae2b4f07 Fix cleaning up LDAP links in tests. 2011-06-13 19:50:40 -07:00
Colin Kuskie
638b2a1996 Fix tests that were leaking assets. 2011-06-13 18:52:44 -07:00
Colin Kuskie
9154db5e2b Just test for falseness, not what kind of falseness. 2011-06-13 18:20:32 -07:00