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