1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-08-07 12:58:37 +02:00
lodel2_mirror/leobject/leclass.py
Roland Haroutiounian 5738bb67cb PEP8/Pylint on LeClass
2015-10-28 14:36:03 +01:00

35 lines
1.1 KiB
Python
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#-*- coding: utf-8 -*-
#import leobject
## @brief Represent an EmClass data instance
# @note Is not a derivated class of LeObject because the concrete class will be a derivated class from LeObject
class LeClass(object):
## @brief Stores fieldtypes by field name
_fieldtypes = dict()
## @brief Stores relation with some LeType using rel2type fields. Key = rel2type fieldname value = LeType class
_linked_types = dict()
## @brief Stores fieldgroups and the fields they contains
_fieldgroups = dict()
## @brief Stores the EM uid
_class_id = None
## @brief Instanciate a new LeClass
# @note Abstract method
# @param **kwargs
def __init__(self, **kwargs):
raise NotImplementedError("Abstract class")
## @brief Get the linked objects
# @return an array of LeType derivated class instance
def linked(self):
pass
## @brief Link this class with an LeObject
# @param leo LeObject : The object to be linked with
# @return True if success False allready done
# @throw A Leo exception if the link is not allowed
def link_to(self, leo):
pass