Commit graph

16662 commits

Author SHA1 Message Date
Peter Christiansen
a9ac52aee3 Added tests to Article.t and Post.t for checking that the template variables
contain the new extension variable.
2011-07-23 01:58:48 +02:00
Peter Christiansen
3128741b4b Rebased changelog and added changes.
- added #9668 extension template variable to attachment loops for the following assets:
Article,Post,Event,File,Form::Attachments,Folder
2011-07-21 23:11:03 +02: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
Paul Driver
a4ee31feef Re-fixed #11379, with tests this time. 2011-07-19 16:41:51 -05: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
Doug Bell
39f026f866 Merge pull request #18 from ampli/datatable
DataTable changes and additions
2011-07-15 15:30:49 -07:00
Paul Driver
5159e522f4 WebGUI::Content::PDFGenerator 2011-07-15 15:16:08 -05: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
Amir Plivatsky
5aa0835649 - Added support for textarea and HTMLarea fields + i18n additional labels
(editor Save/Cancel,  YUI Datatable Loading/Error messages, and also column sort tooltips (new in YUI 29.0).
- Added CSS files for the existing two DataTable Templates.  Each file should be added to the corresponding
  template as a CSS Attachment.
- Avoid terminating the editor on Enter.
- Arrange for TAB to save and move editor for next cell also for HTMLarea editor.
- Define classes "wg-dt-textarea" and "wg-dt-htmlarea" + styling for the corresponding cells.
- Commented out handleTableKeyEvent() (reason in the code).
- Implemented a simple workaround to restore the "editor" field (not preserved due to an unknown reason).
2011-07-12 23:34:27 +03:00
Amir Plivatsky
1fd29bf2a1 Added CSS file for Edit DataTable.
For now it only contains a style to prevent empty row collapsing.
2011-07-12 22:58:45 +03:00
Amir Plivatsky
50954c333f Fixed #12191. 2011-07-12 19:47:27 +03:00
Colin Kuskie
39165c5485 Ready for 7.10.20 development. 2011-07-11 21:03:13 -07:00
Colin Kuskie
6e273059aa Preparing for 7.10.20 release. 2011-07-11 20:47:22 -07:00
Colin Kuskie
7fda01b291 Fixup of FormField macro tests and POD. 2011-07-11 17:22:25 -07:00
Colin Kuskie
9985d24ea2 make installClass read lines from preload.custom for additional directories. Fixes bug #12189 2011-07-11 15:09:21 -07:00
Colin Kuskie
9113408408 When a post is purged, disqualify it as the last post in its thread, and the parent CS. Fixes bug #12183 2011-07-11 15:04:54 -07:00
Colin Kuskie
a945396163 Add a requirement to check on the common::sense module for JSON::XS. Fixes bug #12135 2011-07-11 13:15:19 -07:00
Colin Kuskie
64567f9ed5 Remove test comment. 2011-07-11 13:04:37 -07:00
Colin Kuskie
4b663fdf0b Override new in Form plugins that set their options, so the options are always available. Fixes bug #12190. 2011-07-11 13:04:22 -07:00
Colin Kuskie
1c08796d6c Keywords fixes to prevent leaks. 2011-07-11 13:03:06 -07:00
Colin Kuskie
87d252ec26 Make sure that the keywords template variable is provided by processTemplate, since we documented that it does that. Fixes bug #12186. 2011-07-10 18:29:52 -07:00
Colin Kuskie
200b4c3ec7 Specify the auth type when HTTP Basic auth fails. Fixes bug #12184. 2011-07-10 18:11:28 -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
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
Colin Kuskie
e3a4afe5c3 Allow reasonable default dates in ISO 9601 format. Fixes bug #12165. 2011-07-04 14:14:17 -07:00
Colin Kuskie
7e8ae8fe9a Fix spacing issues with WebGUI::DateTime->webguiDate. 2011-07-04 12:15:58 -07: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
Colin Kuskie
2bcda0c9f5 Change the generic tax driver to remove spaces around commas when adding a new row. Add tests and a convenience method for getting one line of tax information. Upgrade sub fixes any information already in the db. 2011-06-30 16:20:14 -07:00
Scott Walters
6ac46be8bd Missed upgrade script for the FormField macro. Here's it. 2011-06-30 14:41:50 -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
Scott Walters
747f439725 FormField macro for throwing Form controls directly into templates;
useful for using alternative or improved Form controls without having
to change Asset source code.
2011-06-29 18:11:46 -04:00
Doug Bell
9cc5e2270a proper accredation 2011-06-29 18:09:14 -04:00
Doug Bell
4287f2e10a update changelog 2011-06-29 18:03:52 -04:00
Doug Bell
d448919e4d Merge pull request #15 from ampli/master
DataTable: random deletion of columns may happen when a schema is saved  (#12178)
2011-06-29 14:55:35 -07:00
ampli
5ea09092ad Fixed the following jslint warnings:
Lint at line 5 character 16: 'WebGUI' was used before it was defined.
var WebGUI = {};

Lint at line 53 character 86: Missing '()' invoking a constructor.
data[ columns[ i ].key ] = columns[i].formatter == "date" ? new Date : "";

Lint at line 89 character 21: 'i' is already defined.
for ( var i = 0; i < cols.length; i++ ) {

Lint at line 612 character 25: 'col' is already defined.
var col     = this.dataTable.getColumn( oldKey );

Lint at line 661 character 63: Missing '()' invoking a constructor.
allRecords[j].setData(newKey, new Date);
2011-06-29 04:55:59 +03:00