app/soc/logic/models/host.py
changeset 2664 06d4f4d06f64
parent 1955 06ed84dbb1ed
child 2673 cecb3a669527
equal deleted inserted replaced
2663:d270bd8b7417 2664:06d4f4d06f64
    32 
    32 
    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                role_name='host', disallow_last_resign=True):
    40     """Defines the name, key_name and model for this entity.
    40     """Defines the name, key_name and model for this entity.
    41     """
    41     """
    42 
    42 
    43     super(Logic, self).__init__(model=model, base_model=base_model,
    43     super(Logic, self).__init__(role_name=role_name, model=model,
    44                                 scope_logic=scope_logic,
    44                                 base_model=base_model, scope_logic=scope_logic,
    45                                 disallow_last_resign=disallow_last_resign)
    45                                 disallow_last_resign=disallow_last_resign)
    46 
    46 
    47 
    47 
    48   def _onCreate(self, entity):
    48   def _onCreate(self, entity):
    49     """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.