Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
|
@@ -33,6 +33,18 @@ |
|
|
import base64 |
|
|
|
|
|
|
|
|
XML_NS = \ |
|
|
'service="WFS" version="1.0.0" ' \ |
|
|
'xmlns:wfs="http://www.opengis.net/wfs" ' \ |
|
|
'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' \ |
|
|
'xmlns:ogc="http://www.opengis.net/ogc" ' \ |
|
|
'xmlns="http://www.opengis.net/wfs" updateSequence="0" ' \ |
|
|
'xmlns:xlink="http://www.w3.org/1999/xlink" ' \ |
|
|
'xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd" ' \ |
|
|
'xmlns:gml="http://www.opengis.net/gml" ' \ |
|
|
'xmlns:ows="http://www.opengis.net/ows" ' |
|
|
|
|
|
|
|
|
class RestrictedAccessControl(QgsAccessControlFilter): |
|
|
|
|
|
""" Used to have restriction access """ |
|
|
|
@@ -31,7 +31,7 @@ |
|
|
import urllib.parse |
|
|
import urllib.error |
|
|
import base64 |
|
|
from test_qgsserver_accesscontrol import TestQgsServerAccessControl |
|
|
from test_qgsserver_accesscontrol import TestQgsServerAccessControl, XML_NS |
|
|
|
|
|
|
|
|
class TestQgsServerAccessControlWFS(TestQgsServerAccessControl): |
|
|
|
@@ -31,19 +31,8 @@ |
|
|
import urllib.parse |
|
|
import urllib.error |
|
|
import base64 |
|
|
from test_qgsserver_accesscontrol import TestQgsServerAccessControl |
|
|
|
|
|
|
|
|
XML_NS = \ |
|
|
'service="WFS" version="1.0.0" ' \ |
|
|
'xmlns:wfs="http://www.opengis.net/wfs" ' \ |
|
|
'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' \ |
|
|
'xmlns:ogc="http://www.opengis.net/ogc" ' \ |
|
|
'xmlns="http://www.opengis.net/wfs" updateSequence="0" ' \ |
|
|
'xmlns:xlink="http://www.w3.org/1999/xlink" ' \ |
|
|
'xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd" ' \ |
|
|
'xmlns:gml="http://www.opengis.net/gml" ' \ |
|
|
'xmlns:ows="http://www.opengis.net/ows" ' |
|
|
from test_qgsserver_accesscontrol import TestQgsServerAccessControl, XML_NS |
|
|
|
|
|
|
|
|
WFS_TRANSACTION_INSERT = """<?xml version="1.0" encoding="UTF-8"?> |
|
|
<wfs:Transaction {xml_ns}> |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.