Browse Source

Bugfixes in lodel/buildconf.py & mongodb plugin

Yann Weber 8 years ago
parent
commit
be01af2c3e
4 changed files with 5 additions and 5 deletions
  1. 2
    2
      configure.ac
  2. 1
    1
      lodel/buildconf.py.in
  3. 0
    1
      lodel/plugin/plugins.py
  4. 2
    1
      plugins/mongodb_datasource/__init__.py

+ 2
- 2
configure.ac View File

44
 	AC_MSG_WARN([Module werkzeug not found but mandatory for default web interface])
44
 	AC_MSG_WARN([Module werkzeug not found but mandatory for default web interface])
45
 	AC_SUBST([WEBUI], 'False'))
45
 	AC_SUBST([WEBUI], 'False'))
46
 #Mongo datasource deps
46
 #Mongo datasource deps
47
-AC_SUBST([MONGODB], 'True') #Can be found in lodel/buildconf.py
47
+AC_SUBST([PYMONGO], 'True') #Can be found in lodel/buildconf.py
48
 PC_PYTHON_CHECK_MODULE([pymongo], ,
48
 PC_PYTHON_CHECK_MODULE([pymongo], ,
49
 	AC_MSG_WARN([Module pymongo not found. The mongodb datasource will not be able to work])
49
 	AC_MSG_WARN([Module pymongo not found. The mongodb datasource will not be able to work])
50
-	AC_SUBST([MONGODB], 'False'))
50
+	AC_SUBST([PYMONGO], 'False'))
51
 
51
 
52
 #Documentation checks
52
 #Documentation checks
53
 AC_SUBST([DOCOK], 'OK')
53
 AC_SUBST([DOCOK], 'OK')

+ 1
- 1
lodel/buildconf.py.in View File

1
 ##@brief Stores constant evaluated at build time
1
 ##@brief Stores constant evaluated at build time
2
 #@note Populated by ./configure
2
 #@note Populated by ./configure
3
 
3
 
4
-PYMONGO=@MONGODB@
4
+PYMONGO=@PYMONGO@
5
 WEBUI=@WEBUI@
5
 WEBUI=@WEBUI@

+ 0
- 1
lodel/plugin/plugins.py View File

7
 import json
7
 import json
8
 from importlib.machinery import SourceFileLoader, SourcelessFileLoader
8
 from importlib.machinery import SourceFileLoader, SourcelessFileLoader
9
 
9
 
10
-import plugins
11
 from lodel import logger
10
 from lodel import logger
12
 from lodel.settings.utils import SettingsError
11
 from lodel.settings.utils import SettingsError
13
 from .exceptions import *
12
 from .exceptions import *

+ 2
- 1
plugins/mongodb_datasource/__init__.py View File

17
 #
17
 #
18
 # @return bool|str : True if all the checks are OK, an error message if not
18
 # @return bool|str : True if all the checks are OK, an error message if not
19
 def _activate():
19
 def _activate():
20
-    return True
20
+    from lodel import buildconf
21
+    return buildconf.PYMONGO

Loading…
Cancel
Save