35 Commits

Author SHA1 Message Date
Juergen E. Fischer
5c4bf99ce2 debian packaging update: manually merge some changes from PR#2818 and
some spelling fixes.
2016-02-20 16:55:16 +01:00
Juergen E. Fischer
a90be95f7b sip sync 2016-02-14 03:50:49 +01:00
Nyall Dawson
69ce55998e Fix some oddities in server access control and bindings (refs #13919) 2016-01-22 18:48:57 +11:00
Nyall Dawson
752f6bd150 Fix classes which violate rule of three, by implementing required
copy/= operators or making them private

This revealed (and fixes) some issues, including a potential crash
using server access control (refs #13919), and a potential crash with
diagrams
2016-01-22 18:45:45 +11:00
Juergen E. Fischer
4e1cf3c081 add missing copyright headers 2016-01-08 21:32:11 +01:00
Juergen E. Fischer
f8f056e0b2 fix server access control tests on windows 2016-01-07 10:50:34 +01:00
Nyall Dawson
881074b194 Boost coverage of SIP bindings
Now all classes and members are either exposed to bindings or marked
as "not available in Python bindings" in the docs.

Drop test thresholds to 0. Now it should be much easier to determine
what missing members have been added which are causing test
failures.
2016-01-05 11:16:15 +11:00
Stéphane Brunner
c9f0d83aaf The plugin define the following methods:
* layerFilterExpression
  Return an additional filter, used in
  WMS/GetMap, WMS/GetFeatureInfo, WFS/GetFeature to filter the features
* layerFilterSubsetString
  Return an additional the subset string (typically SQL) filter.
  Faster than the layerFilterExpression but not supported on all the
  type of layer
* layerPermissions
  Change the rights on the layer per user (known by the plugin)
  Concern rights: publish, insert, update, delete.
  Mostly used in WFS/Transaction, and the publish in all requests.
* authorizedLayerAttributes
  Be able to show some attributes only for a subset of user
  Used in: WMS/GetFeatureInfo, WFS/GetFeature
* allowToEdit
  Be able to don't allow to edit a particular feature, in our case base
  on the Geometry
  Used in: WFS/Transaction
* cacheKey
  Cache key to used to create the capabilities cache, "" for no cache,
  shouldn't contains any "-", default to ""
2015-11-18 14:49:43 +01:00
Nyall Dawson
526b8fc635 Change some by value arguments to by reference 2015-11-16 09:55:07 +11:00
elpaso
f56054f049 Re-formatted typecode 2015-09-07 17:10:34 +02:00
elpaso
33cbe22096 Convert to type works for QPair of QByteArray 2015-09-07 09:57:32 +02:00
elpaso
a9f2acc57e [SERVER] QgsRequestHandler now returns a QPair
Much simpler GUI with a single method for all
cases. handleRequest now returns both headers and
body in a QPair.
Python binding returns a tuple of QByteArray.
2015-09-05 23:20:30 +02:00
elpaso
e48b6e8910 Moved QMultiMap<int, TYPE2*> to conversion.sip 2015-08-07 09:26:14 +02:00
elpaso
1b06c0c3b8 [server] Added comment 2015-08-06 18:03:49 +02:00
elpaso
d1b7bbee09 [server] Added comment to header 2015-08-06 18:00:24 +02:00
elpaso
e930d696fa [server] setFilters implementation, bindings and test
* moved type conversion to conversions.sip (template)
* added setFilters() to QgsServerInterface
* added tests
2015-08-06 17:51:26 +02:00
elpaso
230196071a Added TypeHeaderCode for QgsServerFiltersMap 2015-08-04 20:55:42 +02:00
Juergen E. Fischer
9752c468c1 indentation update 2015-07-29 11:52:14 +02:00
elpaso
c126592272 Clear the request handler when done
also added some comments and docs strings
2015-07-10 12:03:55 +02:00
Marco Hugentobler
153deba2fc Update python bindings for qgsrequesthandler 2015-07-07 14:57:18 +02:00
elpaso
594357a182 Corrected file comment headers 2015-06-29 12:49:43 +02:00
elpaso
00fa63618b [SERVER] Server refactoring and Python bindings/tests
This is a refactoring of the server component, the
server is now wrapped into a new QgsServer class with
python bindings and an examples python test.
2015-06-29 12:49:43 +02:00
Juergen E. Fischer
6e8d19c2ed fix windows 32bit build 2015-02-04 07:15:49 +01:00
Juergen E. Fischer
6d4f444237 sip fix: remove duplicate method and private methods from server request
handler (followup abd4a043)
2015-02-04 01:39:29 +01:00
Juergen E. Fischer
abd4a04399 sip update 2015-02-03 02:21:52 +01:00
Juergen E. Fischer
6a1e1bb668 * fix server plugin build on windows
* move src/mapserver to src/server (IMHO better name and in sync with
  python/server)
* rename cmake option WITH_MAPSERVER to WITH_SERVER
* rename define MAPSERVER_HAVE_PYTHON_PLUGINS to HAVE_SERVER_PYTHON_PLUGINS
2014-11-28 16:46:29 +01:00
elpaso
8034e721ee Removed SIP Transfer
Funded by ItOpen - http://www.itopen.it
2014-11-26 16:07:51 +01:00
elpaso
33f1e35333 body() now return QByteArray
Funded by ItOpen - http://www.itopen.it
2014-11-26 16:07:51 +01:00
elpaso
7f3a8d592a Fixed header comments 2014-11-26 16:07:51 +01:00
elpaso
329b9d7ece Renamed plugin hook responseReady to responseComplete
added sendResponse hook and passed pluginFilters to
request handler
2014-11-26 16:07:20 +01:00
elpaso
856e4dede6 Set exception moved to public 2014-11-26 16:03:57 +01:00
elpaso
ca8e0c3991 Added comments for bindings. 2014-11-26 16:03:57 +01:00
elpaso
b7c7422416 Comments added 2014-11-26 16:02:33 +01:00
elpaso
c9d6f4da43 Added getEnv to plugins API 2014-11-26 16:02:32 +01:00
elpaso
5f44cc5719 Added serve python plugins 2014-11-26 16:02:32 +01:00