Browse Source

Merge commit '8971cff64e' into datasource_fieldtypes

Fixing settings
Yann Weber 9 years ago
parent
commit
03ab4b0c59
3 changed files with 8 additions and 2 deletions
  1. 1
    0
      Lodel/settings_format.py
  2. 3
    1
      Template/Loader.py
  3. 4
    1
      install/Makefile

+ 1
- 0
Lodel/settings_format.py View File

@@ -13,6 +13,7 @@ MANDATORY = [
13 13
     'datasource',
14 14
     'mh_classname',
15 15
     'migration_options',
16
+    'base_path'
16 17
 ]
17 18
 
18 19
 ## @brief List allowed (but not mandatory) configurations keys

+ 3
- 1
Template/Loader.py View File

@@ -21,7 +21,9 @@ class TemplateLoader(object):
21 21
     # @param template_file str : path to the template file (starting from the base path used to instanciate the
22 22
     #                            TemplateLoader)
23 23
     # @param template_vars dict : parameters to be used in the template
24
-    # @param template_extra list : list of custom modules to import in the template (default value : None)
24
+    # @param template_extra list : list of tuples indicating the custom modules to import in the template (default: None).
25
+    #                              The modules are given as tuples with the format : ('name_to_use_in_the_template', module)
26
+    #
25 27
     # @return str. String containing the HTML output of the processed templated
26 28
     def render_to_html(self, template_file, template_vars={}, template_extra=None):
27 29
         loader = jinja2.FileSystemLoader(searchpath=self.search_path, followlinks=self.follow_links)

+ 4
- 1
install/Makefile View File

@@ -1,4 +1,4 @@
1
-all: refreshdyn dbinit
1
+all: refreshdyn dbinit dirinit
2 2
 
3 3
 refreshdyn: distclean
4 4
 	python -c "import utils; utils.refreshdyn()"
@@ -6,6 +6,9 @@ refreshdyn: distclean
6 6
 dbinit:
7 7
 	python -c "import utils; utils.db_init()"
8 8
 
9
+dirinit:
10
+	@mkdir templates
11
+
9 12
 emgraph:
10 13
 	python -c "import utils; utils.em_graph()"
11 14
 

Loading…
Cancel
Save