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 role_name='org_admin', disallow_last_resign=True): |
39 """Defines the name, key_name and model for this entity. |
39 """Defines the name, key_name and model for this entity. |
40 """ |
40 """ |
41 |
41 |
42 super(Logic, self).__init__(model=model, base_model=base_model, |
42 super(Logic, self).__init__(model=model, base_model=base_model, |
43 scope_logic=scope_logic, |
43 scope_logic=scope_logic, |
|
44 role_name=role_name, |
44 disallow_last_resign=disallow_last_resign) |
45 disallow_last_resign=disallow_last_resign) |
45 |
46 |
46 def _onCreate(self, entity): |
47 def _onCreate(self, entity): |
47 """Marks the Organization for this Org Admin as active |
48 """Marks the Organization for this Org Admin as active |
48 if it's status is new. |
49 if it's status is new. |