Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Item13001: specify REST security
  • Loading branch information
MichaelDaum committed Aug 28, 2014
1 parent a9f1026 commit 36ff70f
Show file tree
Hide file tree
Showing 16 changed files with 71 additions and 15 deletions.
54 changes: 54 additions & 0 deletions .gitignore
@@ -0,0 +1,54 @@
*.gz
*.swp
pub/System/JQGridPlugin/css/jquery.jqgrid.css
pub/System/JQGridPlugin/i18n/grid.locale-ar.js
pub/System/JQGridPlugin/i18n/grid.locale-bg1251.js
pub/System/JQGridPlugin/i18n/grid.locale-bg.js
pub/System/JQGridPlugin/i18n/grid.locale-cat.js
pub/System/JQGridPlugin/i18n/grid.locale-cn.js
pub/System/JQGridPlugin/i18n/grid.locale-cs.js
pub/System/JQGridPlugin/i18n/grid.locale-da.js
pub/System/JQGridPlugin/i18n/grid.locale-de.js
pub/System/JQGridPlugin/i18n/grid.locale-dk.js
pub/System/JQGridPlugin/i18n/grid.locale-el.js
pub/System/JQGridPlugin/i18n/grid.locale-en.js
pub/System/JQGridPlugin/i18n/grid.locale-es.js
pub/System/JQGridPlugin/i18n/grid.locale-fa.js
pub/System/JQGridPlugin/i18n/grid.locale-fi.js
pub/System/JQGridPlugin/i18n/grid.locale-fr.js
pub/System/JQGridPlugin/i18n/grid.locale-gl.js
pub/System/JQGridPlugin/i18n/grid.locale-he.js
pub/System/JQGridPlugin/i18n/grid.locale-hr1250.js
pub/System/JQGridPlugin/i18n/grid.locale-hr.js
pub/System/JQGridPlugin/i18n/grid.locale-hu.js
pub/System/JQGridPlugin/i18n/grid.locale-is.js
pub/System/JQGridPlugin/i18n/grid.locale-it.js
pub/System/JQGridPlugin/i18n/grid.locale-ja.js
pub/System/JQGridPlugin/i18n/grid.locale-jp.js
pub/System/JQGridPlugin/i18n/grid.locale-lt.js
pub/System/JQGridPlugin/i18n/grid.locale-mne.js
pub/System/JQGridPlugin/i18n/grid.locale-nl.js
pub/System/JQGridPlugin/i18n/grid.locale-no.js
pub/System/JQGridPlugin/i18n/grid.locale-pl.js
pub/System/JQGridPlugin/i18n/grid.locale-pt-br.js
pub/System/JQGridPlugin/i18n/grid.locale-pt.js
pub/System/JQGridPlugin/i18n/grid.locale-ro.js
pub/System/JQGridPlugin/i18n/grid.locale-ru.js
pub/System/JQGridPlugin/i18n/grid.locale-sk.js
pub/System/JQGridPlugin/i18n/grid.locale-sp.js
pub/System/JQGridPlugin/i18n/grid.locale-sr.js
pub/System/JQGridPlugin/i18n/grid.locale-sr-latin.js
pub/System/JQGridPlugin/i18n/grid.locale-sv.js
pub/System/JQGridPlugin/i18n/grid.locale-th.js
pub/System/JQGridPlugin/i18n/grid.locale-tr.js
pub/System/JQGridPlugin/i18n/grid.locale-ua.js
pub/System/JQGridPlugin/jquery.jqgrid.init.js
pub/System/JQGridPlugin/jquery.jqgrid.js

JQGridPlugin.md5
JQGridPlugin.sha1
JQGridPlugin.tgz
JQGridPlugin.txt
JQGridPlugin.zip
JQGridPlugin_installer
JQGridPlugin_installer.pl
1 change: 1 addition & 0 deletions data/System/JQGridPlugin.txt
Expand Up @@ -171,6 +171,7 @@ Custom grid connectors must process the following parameters:
| Release: | %$RELEASE% |
| Version: | %$VERSION% |
| Change History: | <!-- versions below in reverse order --> |
| 28 Aug 2014: | (2.31) fully specify REST security |
| 11 Apr 2014: | (2.30) work around different styles of inconsistencies in =renderForDisplay= across foswiki core releases |
| 04 Apr 2014: | (2.22) flag rest handlers that don't require authentication |
| 14 Mar 2013: | (2.21) be robust stumbling over topics that lost their form definition |
Expand Down
10 changes: 7 additions & 3 deletions lib/Foswiki/Plugins/JQGridPlugin.pm
Expand Up @@ -16,8 +16,8 @@ package Foswiki::Plugins::JQGridPlugin;
use strict;
use warnings;

our $VERSION = '2.30';
our $RELEASE = '2.30';
our $VERSION = '2.31';
our $RELEASE = '2.31';
our $SHORTDESCRIPTION = 'jQuery grid widget for Foswiki';
our $NO_PREFS_IN_TOPIC = 1;
our $doInit = 0;
Expand All @@ -34,7 +34,11 @@ sub initPlugin {
Foswiki::Plugins::JQueryPlugin::registerPlugin('grid', 'Foswiki::Plugins::JQGridPlugin::GRID');

Foswiki::Func::registerTagHandler('GRID', \&handleGrid);
Foswiki::Func::registerRESTHandler('gridconnector', \&restGridConnector, authenticate => 0);
Foswiki::Func::registerRESTHandler('gridconnector', \&restGridConnector,
authenticate => 0,
validate => 0,
http_allow => 'GET,POST',
);

my $selector = Foswiki::Func::getPreferencesValue('JQGRIDPLUGIN_TABLE2GRID');# || '.foswikiTable';

Expand Down
2 changes: 1 addition & 1 deletion lib/Foswiki/Plugins/JQGridPlugin/Connector.pm
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2009-2013 Michael Daum, http://michaeldaumconsulting.com
# Copyright (C) 2009-2014 Michael Daum, http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion lib/Foswiki/Plugins/JQGridPlugin/DBCacheConnector.pm
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2009-2013 Michael Daum, http://michaeldaumconsulting.com
# Copyright (C) 2009-2014 Michael Daum, http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion lib/Foswiki/Plugins/JQGridPlugin/FoswikiConnector.pm
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2009-2013 Michael Daum, http://michaeldaumconsulting.com
# Copyright (C) 2009-2014 Michael Daum, http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion lib/Foswiki/Plugins/JQGridPlugin/GRID.pm
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2009-2013 Michael Daum, http://michaeldaumconsulting.com
# Copyright (C) 2009-2014 Michael Daum, http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion lib/Foswiki/Plugins/JQGridPlugin/SearchConnector.pm
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2009-2013 Michael Daum, http://michaeldaumconsulting.com
# Copyright (C) 2009-2014 Michael Daum, http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion lib/Foswiki/Plugins/JQGridPlugin/SolrConnector.pm
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2011-2013 Michael Daum, http://michaeldaumconsulting.com
# Copyright (C) 2011-2014 Michael Daum, http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion pub/System/JQGridPlugin/Makefile
@@ -1,4 +1,4 @@
FOSWIKI_ROOT?=~/foswiki/trunk/core
FOSWIKI_ROOT?=~/foswiki/core
TARGET=jquery.jqgrid.js jquery.jqgrid.init.js
SUBDIRS=i18n css

Expand Down
2 changes: 2 additions & 0 deletions pub/System/JQGridPlugin/i18n/Makefile
Expand Up @@ -40,3 +40,5 @@ TARGET=\

-include ../Makefile.include

clean:
rm $(TARGET) *.gz
1 change: 0 additions & 1 deletion pub/System/JQGridPlugin/i18n/grid.locale-ar.js

This file was deleted.

1 change: 0 additions & 1 deletion pub/System/JQGridPlugin/i18n/grid.locale-da.js

This file was deleted.

1 change: 0 additions & 1 deletion pub/System/JQGridPlugin/i18n/grid.locale-gl.js

This file was deleted.

1 change: 0 additions & 1 deletion pub/System/JQGridPlugin/i18n/grid.locale-lt.js

This file was deleted.

0 comments on commit 36ff70f

Please sign in to comment.