|
@@ -26,11 +26,12 @@ em_lodel_site = em.new_class(
|
26
|
26
|
)
|
27
|
27
|
|
28
|
28
|
em_lodel_site.new_field(
|
29
|
|
- 'name',
|
30
|
|
- display_name = 'lodelSiteName',
|
31
|
|
- help_text = 'Lodel site full name',
|
|
29
|
+ 'id',
|
|
30
|
+ display_name = 'Site id',
|
|
31
|
+ help_text = 'Numeric uniq ID for a Lodel site',
|
32
|
32
|
group = base_group,
|
33
|
|
- data_handler = 'varchar'
|
|
33
|
+ data_handler = 'uniqid',
|
|
34
|
+ internal = True
|
34
|
35
|
)
|
35
|
36
|
|
36
|
37
|
em_lodel_site.new_field(
|
|
@@ -39,9 +40,17 @@ em_lodel_site.new_field(
|
39
|
40
|
help_text = 'Lodel site short string identifier',
|
40
|
41
|
group = base_group,
|
41
|
42
|
data_handler = 'regex',
|
42
|
|
- max_length = 5,
|
|
43
|
+ max_length = 16,
|
43
|
44
|
regex = '^[0-9a-z_-]+$',
|
44
|
|
- primary_key = True
|
|
45
|
+ uniq = True
|
|
46
|
+)
|
|
47
|
+
|
|
48
|
+em_lodel_site.new_field(
|
|
49
|
+ 'name',
|
|
50
|
+ display_name = 'lodelSiteName',
|
|
51
|
+ help_text = 'Lodel site full name',
|
|
52
|
+ group = base_group,
|
|
53
|
+ data_handler = 'varchar'
|
45
|
54
|
)
|
46
|
55
|
|
47
|
56
|
em_lodel_site.new_field(
|
|
@@ -63,14 +72,16 @@ em_lodel_site.new_field(
|
63
|
72
|
|
64
|
73
|
|
65
|
74
|
|
66
|
|
-
|
|
75
|
+#
|
|
76
|
+#This class & fields becomes mandatory when the auth process was integrated
|
|
77
|
+#into lodel2 engine
|
|
78
|
+#
|
67
|
79
|
user_group = em.new_group(
|
68
|
80
|
'users',
|
69
|
81
|
display_name = 'Lodel users',
|
70
|
82
|
help_text = 'Group that handle users en perm'
|
71
|
83
|
)
|
72
|
84
|
|
73
|
|
-
|
74
|
85
|
user = em.new_class(
|
75
|
86
|
'User',
|
76
|
87
|
group = user_group
|