Browse Source

Documentation update : add something about Lodel2 UI and ACL

Yann Weber 9 years ago
parent
commit
afb1ee99f1

+ 2
- 2
EditorialModel/backend/graphviz.py View File

@@ -109,8 +109,8 @@ class EmBackendGraphviz(EmBackendDummy):
109 109
                         rel_field += rel_node
110 110
 
111 111
                         ref_node = EmBackendGraphviz._component_id(em.component(f.rel_to_type_id))
112
-                        self.edges += '%s:f%d -> %s [ color="purple" ]\n'%(EmBackendGraphviz._component_id(c), cntref, rel_node_id)
113
-                        self.edges += '%s -> %s [color="purple"]\n'%(rel_node_id, ref_node)
112
+                        self.edges += '%s:f%d -> %s [ color="purple" dir="both" ]\n'%(EmBackendGraphviz._component_id(c), cntref, rel_node_id)
113
+                        self.edges += '%s -> %s [color="purple" dir="both" ]\n'%(rel_node_id, ref_node)
114 114
 
115 115
                     ret += '|'
116 116
                     if first:

+ 18
- 5
Lodel/__init__.py View File

@@ -67,13 +67,26 @@
67 67
 # EmFields defines what kind of datas can be stored in EmTypes. Actually its the associationg with an EmFieldtype ( see @ref lodel2_fieldtypes )
68 68
 # that really defines what kind of datas can be stored.
69 69
 #
70
-# @subsection lodel2_arch_edmod_fig Editorial model figures
70
+# @section lodel2_arch_ui Lodel2 user interfaces
71 71
 #
72
-# @subsubsection lodel2_arch_edmod_fig_components Editorial model main components
72
+# All access to datas are made via UI. UI actions are composed with 3 or 4 elements :
73
+# - user
74
+# - action (Crud actions ?)
75
+# - target
76
+# - sometimes datas
77
+#
78
+# Each actions are send to Lodel2 ACL that check permissions and forward the actions to leapi. leapi send back a reply to the
79
+# UI. And the response get formatted by UI templates. ( see @ref lodel2_arch_ui_fig )
80
+#
81
+# @section lodel2_arch_fig Figures
82
+#
83
+# @subsection lodel2_arch_edmod_fig_components Editorial model main components
73 84
 # @image html graphviz/em_components.png
74
-# @subsubsection lodel2_arch_edmod_fig_relations Editorial model relations between components
85
+# @subsection lodel2_arch_edmod_fig_relations Editorial model relations between components
75 86
 # @image html graphviz/em_relations.png
76
-# @subsubsection lodel2_arch_edmod_fig_hierarchy Hierarchical relations between EmTypes given a classtype
87
+# @subsection lodel2_arch_edmod_fig_hierarchy Hierarchical relations between EmTypes given a classtype
77 88
 # @image html graphviz/em_types_hierarch.png
78
-# @subsubsection lodel2_arch_edmod_fig_em_example Example of editorial model
89
+# @subsection lodel2_arch_edmod_fig_em_example Example of editorial model
79 90
 # @image html graphviz/example_em_graph.png
91
+# @subsection lodel2_arch_ui_fig Lodel2 UI schema
92
+# @image html graphviz/lodel2_ui.png

+ 2
- 2
Makefile View File

@@ -25,10 +25,10 @@ docimages:
25 25
 #
26 26
 .PHONY: check doc clean cleanpyc cleandoc cleanpycache
27 27
 
28
-clean: cleanpyc cleandoc cleanpycache
28
+clean: cleanpyc cleandoc cleanpycache cleandocimages
29 29
 
30 30
 # Documentation cleaning
31
-cleandoc: cleandocimages
31
+cleandoc:
32 32
 	-rm -Rfv ./doc/html ./doc/doxygen_sqlite3.db
33 33
 
34 34
 cleandocimages:

+ 2
- 2
doc/img/graphviz/example_em_graph.dot View File

@@ -26,8 +26,8 @@ style="invis"
26 26
 emcomp1 -> ctentity [ style="dashed" ]
27 27
 emcomp2 -> ctperson [ style="dashed" ]
28 28
 emcomp13 -> ctentity [ style="dashed" ]
29
-emcomp5:f0 -> emcomp5emcomp6 [ color="purple" ]
30
-emcomp5emcomp6 -> emcomp6 [color="purple"]
29
+emcomp5:f0 -> emcomp5emcomp6 [ color="purple" dir="both" ]
30
+emcomp5emcomp6 -> emcomp6 [color="purple" dir="both" ]
31 31
 emcomp5 -> emcomp1 [ style="dotted" ]
32 32
 emcomp5 -> emcomp14 [ label="parent" color="green" ]
33 33
 emcomp6 -> emcomp2 [ style="dotted" ]

+ 0
- 14
doc/img/graphviz/lodel2_archi.dot View File

@@ -1,14 +0,0 @@
1
-digraph Lodel2_architecture {
2
-	
3
-
4
-	ui [ label="User interface" ]
5
-	leapi [ label="<api>Lodel Editorial API|{Static API|<dynamic> Dynamically generated API}", shape=record ]
6
-	editorial_model [ label="<em>Editorial Model|{Classes|Types|{<fields>Fields|<ftype>fieldtypes}}", shape=record ]
7
-
8
-	editorial_model:em -> leapi:dynamic [ label="Generate" ]
9
-	editorial_model:ftype -> editorial_model:fields [ label="Defines field value" ]
10
-	leapi -> editorial_model:ftype [ label="Asks for data validation" ]
11
-	ui -> leapi:api
12
-	leapi:api -> ui
13
-
14
-}

+ 15
- 0
doc/img/graphviz/lodel2_ui.dot View File

@@ -0,0 +1,15 @@
1
+digraph Lodel2_architecture {
2
+	
3
+	ui [label="<ui> UI|{web|cli|lodel2fs}|<tpl> templates", shape=record]
4
+
5
+	action [label="{user|action|target}|<datas> datas}", shape=record]
6
+	ACL
7
+	leapi [label="LeAPI"]
8
+
9
+	ui:ui -> action
10
+	action -> ACL
11
+	ACL -> leapi
12
+	action:datas -> leapi
13
+	leapi -> ui:tpl
14
+
15
+}

Loading…
Cancel
Save