equal
deleted
inserted
replaced
24 |
24 |
25 from soc.logic import key_name |
25 from soc.logic import key_name |
26 from soc.logic.models import base |
26 from soc.logic.models import base |
27 |
27 |
28 import soc.models.host |
28 import soc.models.host |
|
29 import soc.models.role |
29 |
30 |
30 |
31 |
31 class Logic(base.Logic): |
32 class Logic(base.Logic): |
32 """Logic methods for the Host model |
33 """Logic methods for the Host model |
33 """ |
34 """ |
34 |
35 |
35 def __init__(self): |
36 def __init__(self): |
36 """Defines the name, key_name and model for this entity. |
37 """Defines the name, key_name and model for this entity. |
37 """ |
38 """ |
38 |
39 base.Logic.__init__(self, soc.models.host.Host, |
39 self._name = "Host" |
40 base_model=soc.models.role.Role) |
40 self._model = soc.models.host.Host |
|
41 self._skip_properties = [] |
|
42 |
41 |
43 def getKeyValues(self, entity): |
42 def getKeyValues(self, entity): |
44 """See base.Logic.getKeyNameValues. |
43 """See base.Logic.getKeyNameValues. |
45 """ |
44 """ |
46 |
45 |