33 class Logic(role.Logic): |
33 class Logic(role.Logic): |
34 """Logic methods for the Host model. |
34 """Logic methods for the Host model. |
35 """ |
35 """ |
36 |
36 |
37 def __init__(self, model=soc.models.host.Host, |
37 def __init__(self, model=soc.models.host.Host, |
38 base_model=soc.models.role.Role, scope_logic=sponsor_logic): |
38 base_model=soc.models.role.Role, scope_logic=sponsor_logic, |
|
39 disallow_last_resign=True): |
39 """Defines the name, key_name and model for this entity. |
40 """Defines the name, key_name and model for this entity. |
40 """ |
41 """ |
41 |
42 |
42 super(Logic, self).__init__(model=model, base_model=base_model, |
43 super(Logic, self).__init__(model=model, base_model=base_model, |
43 scope_logic=scope_logic) |
44 scope_logic=scope_logic, |
|
45 disallow_last_resign=disallow_last_resign) |
44 |
46 |
45 |
47 |
46 def _onCreate(self, entity): |
48 def _onCreate(self, entity): |
47 """Marks the Sponsor for this Host as active it's status is new. |
49 """Marks the Sponsor for this Host as active it's status is new. |
48 """ |
50 """ |