Skip to content
Permalink
Browse files

[server] QsgServerInterface available without python

  • Loading branch information
elpaso committed Jan 13, 2017
1 parent 563de37 commit 0f7dfc92855e24921bb4829125a7999291cd66a1
Showing with 1 addition and 6 deletions.
  1. +0 −3 src/server/qgsserver.cpp
  2. +1 −3 src/server/qgsserver.h
@@ -399,10 +399,7 @@ void QgsServer::handleRequest( QgsServerRequest& request, QgsServerResponse& res
//Config file path
QString configFilePath = configPath( *sConfigFilePath, parameterMap );

#ifdef HAVE_SERVER_PYTHON_PLUGINS
// XXX Why this is enabled only fol plugins ?
sServerInterface->setConfigFilePath( configFilePath );
#endif

//Service parameter
QString serviceString = parameterMap.value( QStringLiteral( "SERVICE" ) );
@@ -71,7 +71,7 @@ class SERVER_EXPORT QgsServer
*/
void handleRequest( QgsServerRequest& request, QgsServerResponse& response );

/** Handles the request from query strinf
/** Handles the request from query string
* The query string is normally read from environment
* but can be also passed in args and in this case overrides the environment
* variable.
@@ -125,9 +125,7 @@ class SERVER_EXPORT QgsServer
// Status
static QString* sConfigFilePath;
static QgsCapabilitiesCache* sCapabilitiesCache;
#ifdef HAVE_SERVER_PYTHON_PLUGINS
static QgsServerInterfaceImpl* sServerInterface;
#endif
//! Initialization must run once for all servers
static bool sInitialised;

0 comments on commit 0f7dfc9

Please sign in to comment.
You can’t perform that action at this time.