Commit graph

11153 commits

Author SHA1 Message Date
Colin Kuskie
eee4269fe2 Update the POD for the AdminToggle macro. It now only takes two arguments instead of three. 2011-10-11 21:48:18 -07:00
Colin Kuskie
be109711a8 i18n a few more labels in the new admin console 2011-10-11 21:00:45 -07:00
Colin Kuskie
f479d2ece8 Remove the FilePile asset from the file system and the config files. 2011-10-11 15:59:14 -07:00
Colin Kuskie
a2a3b2dcb9 Convert FilePile asset into an AssetHelper. 2011-10-11 14:52:00 -07:00
Colin Kuskie
c6f4222a55 Fix POD for edit branch asset helper. 2011-10-11 14:52:00 -07:00
Colin Kuskie
51f41024a3 Move GalleryFile/Photo over to getEditTemplate so it can inherit templates from its parent. 2011-10-04 16:32:33 -07:00
Colin Kuskie
381638f62c Set the action to get the save! 2011-10-03 15:41:04 -07:00
Colin Kuskie
0e82552f27 Make a custom getEditTemplate method to handle getting information from the parent Matrix. Fix class=>className form code, and adding buttons. 2011-10-03 13:40:04 -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
8973f6a4e2 Fix EMS issues and change www_edit to a getEditForm override. 2011-09-30 18:54:35 -07:00
Colin Kuskie
8cadf2d1c3 UPdated POD for getEditForm override. 2011-09-30 18:34:46 -07:00
Colin Kuskie
4aa668df33 Add some redirect/proceed magic to make it return you to the EMS after adding/editing a badge. 2011-09-30 15:24:45 -07:00
Colin Kuskie
cea9786d98 Updated to work with getEditForm. 2011-09-30 15:14:13 -07:00
Colin Kuskie
e6a7982111 I18n fix for EMSBadge, and updated to work with getEditForm. 2011-09-30 15:13:49 -07:00
Colin Kuskie
778910302f use getStyleTemplateId so mobile styles are obeyed. 2011-08-10 07:53:09 -07:00
Colin Kuskie
82773839b6 Convert Event to use getEditTemplate. 2011-08-09 20:20:57 -07:00
Colin Kuskie
b3f5e89690 Take the object's default as a defaultValue for the form if there are no config file overrides. However, always provide one. 2011-08-09 20:19:40 -07:00
Colin Kuskie
693bccde4b Remove useless call to getGallery. 2011-08-09 13:32:52 -07:00
Graham Knop
620d34b8f7 fix race condition in passive profiling 2011-08-08 15:42:00 -05:00
Colin Kuskie
0af0bf6a13 Remove www_edit from WikiPage and rely on the master class instead. 2011-08-04 22:13:41 -07:00
Colin Kuskie
fe2aa2fe87 Don't need www_edit anymore, either. 2011-08-04 22:13:41 -07:00
Colin Kuskie
32a3225daa Update Story to use getEditTemplate 2011-08-04 22:13:41 -07:00
Graham Knop
361f60c483 better upgrade script name detection 2011-08-04 12:48:51 -05:00
Colin Kuskie
c13e9e9367 Form parameter fix: class -> className in the Post. 2011-08-03 16:14:56 -07:00
Colin Kuskie
6979358d70 Convert Post over to using getEditTemplate. Still need work on autocommit. 2011-08-02 16:26:14 -07:00
Colin Kuskie
469250fd76 Update WikiPage to use the right style template. 2011-08-01 16:05:44 -07:00
Colin Kuskie
4ac894d981 Add a method that returns either the standard style template or the mobile style template based on the Session. 2011-08-01 16:04:54 -07:00
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
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