Browse Source

Added some commentson header function

m.orban 8 years ago
parent
commit
cabfd95b73
3 changed files with 5 additions and 3 deletions
  1. 2
    1
      README.txt
  2. 2
    1
      lodel/leapi/lefactory.py
  3. 1
    1
      lodel/utils/mlstring.py

+ 2
- 1
README.txt View File

1
 Dependencies :
1
 Dependencies :
2
 	with pip : see requirements.txt
2
 	with pip : see requirements.txt
3
-	debian stable : python3 python3-lxml python3-jinja2 python3-werkzeug python3-pymongo doxygen graphviz uwsgi-plugin-python3 mongodb
3
+	debian stable : python3 python3-lxml python3-jinja2 python3-werkzeug python3-pymongo uwsgi-plugin-python3 mongodbd
4
 
4
 
5
 Doxygen documentation generation :
5
 Doxygen documentation generation :
6
+	dependencies: doxypy doxygen graphviz
6
 	doxygen
7
 	doxygen
7
 
8
 
8
 Dynamic code generation :
9
 Dynamic code generation :

+ 2
- 1
lodel/leapi/lefactory.py View File

1
 #-*- coding: utf-8 -*-
1
 #-*- coding: utf-8 -*-
2
 
2
 
3
 import functools
3
 import functools
4
-from lodel.editorial_model.components import *
4
+#from lodel.editorial_model.components import *
5
 from lodel.leapi.leobject import LeObject
5
 from lodel.leapi.leobject import LeObject
6
 from lodel.leapi.datahandlers.base_classes import DataHandler
6
 from lodel.leapi.datahandlers.base_classes import DataHandler
7
 
7
 
104
 ##@brief Generate dyncode from an EmClass
104
 ##@brief Generate dyncode from an EmClass
105
 # @param model EditorialModel : 
105
 # @param model EditorialModel : 
106
 # @param emclass EmClass : EmClass instance
106
 # @param emclass EmClass : EmClass instance
107
+# @todo delete imports. It is never use, consequently changed return parameters.
107
 # @return a tuple with emclass python code, a set containing modules name to import, and a list of python instruction to bootstrap dynamic code, in this order
108
 # @return a tuple with emclass python code, a set containing modules name to import, and a list of python instruction to bootstrap dynamic code, in this order
108
 def generate_classes(model):
109
 def generate_classes(model):
109
     res = ""
110
     res = ""

+ 1
- 1
lodel/utils/mlstring.py View File

18
     ]
18
     ]
19
 
19
 
20
     ##@brief Create a new MlString instance
20
     ##@brief Create a new MlString instance
21
-    # @param arg str | dict : Can be a json string, a string or a dict
21
+    # @param arg str | dict : Can be a json string, a string or a dict. It could be also a MlString object
22
     def __init__(self, arg):
22
     def __init__(self, arg):
23
         self.values = dict()
23
         self.values = dict()
24
         if isinstance(arg, str):
24
         if isinstance(arg, str):

Loading…
Cancel
Save