app/soc/logic/models/sponsor.py
changeset 2808 0b2d25b1c473
parent 1308 35b75ffcbb37
equal deleted inserted replaced
2807:e716cd6a6de3 2808:0b2d25b1c473
    39 
    39 
    40     super(Logic, self).__init__(model=model, base_model=base_model)
    40     super(Logic, self).__init__(model=model, base_model=base_model)
    41 
    41 
    42   def isDeletable(self, entity):
    42   def isDeletable(self, entity):
    43     """Returns whether the specified Sponsor entity can be deleted.
    43     """Returns whether the specified Sponsor entity can be deleted.
    44     
    44 
    45     Args:
    45     Args:
    46       entity: an existing Sponsor entity in datastore
    46       entity: an existing Sponsor entity in datastore
    47     """
    47     """
    48 
    48 
    49     # TODO(pawel.solyga): Check if Sponsor can be deleted (no Hosts, Programs)
    49     # TODO(pawel.solyga): Check if Sponsor can be deleted (no Hosts, Programs)
    50     return True
    50     return False
    51 
    51 
    52 
    52 
    53 logic = Logic()
    53 logic = Logic()