Skip to content

Commit

Permalink
[server] QsgServerInterface available without python
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jan 13, 2017
1 parent 563de37 commit 0f7dfc9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions src/server/qgsserver.cpp
Expand Up @@ -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" ) );
Expand Down
4 changes: 1 addition & 3 deletions src/server/qgsserver.h
Expand Up @@ -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.
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 0f7dfc9

Please sign in to comment.