|
@@ -1,11 +1,12 @@
|
1
|
1
|
#-*- coding: utf-8 -*-
|
2
|
2
|
|
3
|
|
-import leobject
|
|
3
|
+#import leobject
|
|
4
|
+
|
4
|
5
|
|
5
|
6
|
## @brief Represent an EmClass data instance
|
6
|
|
-# @note Is not a derivated class of LeObject because the concrete class will be a derivated class from LeObect
|
|
7
|
+# @note Is not a derivated class of LeObject because the concrete class will be a derivated class from LeObject
|
7
|
8
|
class LeClass(object):
|
8
|
|
-
|
|
9
|
+
|
9
|
10
|
## @brief Stores fieldtypes by field name
|
10
|
11
|
_fieldtypes = dict()
|
11
|
12
|
## @brief Stores relation with some LeType using rel2type fields. Key = rel2type fieldname value = LeType class
|
|
@@ -20,16 +21,15 @@ class LeClass(object):
|
20
|
21
|
# @param **kwargs
|
21
|
22
|
def __init__(self, **kwargs):
|
22
|
23
|
raise NotImplementedError("Abstract class")
|
23
|
|
-
|
|
24
|
+
|
24
|
25
|
## @brief Get the linked objects
|
25
|
26
|
# @return an array of LeType derivated class instance
|
26
|
27
|
def linked(self):
|
27
|
28
|
pass
|
28
|
|
-
|
|
29
|
+
|
29
|
30
|
## @brief Link this class with an LeObject
|
30
|
31
|
# @param leo LeObject : The object to be linked with
|
31
|
32
|
# @return True if success False allready done
|
32
|
33
|
# @throw A Leo exception if the link is not allowed
|
33
|
34
|
def link_to(self, leo):
|
34
|
35
|
pass
|
35
|
|
-
|