app/soc/logic/models/site.py
changeset 752 e9a45874fe37
parent 702 e3b91b6955ff
child 851 506752de2e19
equal deleted inserted replaced
751:16dffe0b6336 752:e9a45874fe37
    20 __authors__ = [
    20 __authors__ = [
    21   '"Sverre Rabbelier" <sverre@rabbelier.nl>',
    21   '"Sverre Rabbelier" <sverre@rabbelier.nl>',
    22   ]
    22   ]
    23 
    23 
    24 
    24 
    25 from soc.logic.models import base
       
    26 from soc.logic.models import presence
    25 from soc.logic.models import presence
    27 
    26 
    28 import soc.models.presence
    27 import soc.models.presence
    29 import soc.models.site
    28 import soc.models.site
    30 
    29 
    43     super(Logic, self).__init__(model=model, base_model=base_model)
    42     super(Logic, self).__init__(model=model, base_model=base_model)
    44 
    43 
    45   def getKeyValues(self, entity):
    44   def getKeyValues(self, entity):
    46     """Returns the key values for the site settings.
    45     """Returns the key values for the site settings.
    47 
    46 
    48     The Site entity is a singleton, so this method returns a
    47     The Site entity is a singleton, so this method returns 
    49     hard-coded link_id.
    48     a hard-coded link_id.
    50 
    49 
    51     Args:
    50     Args:
    52       entity: unused
    51       entity: unused
    53     """
    52     """
    54 
    53 
    55     return [self.DEF_SITE_LINK_ID]
    54     return [self.DEF_SITE_LINK_ID]
    56 
    55 
    57   def getKeyValuesFromFields(self, fields):
    56   def getKeyValuesFromFields(self, fields):
    58     """Extracts the key values from a dict and returns them.
    57     """Extracts the key values from a dict and returns them.
    59 
    58 
    60     The Site entity is a singleton, so this method returns a
    59     The Site entity is a singleton, so this method returns 
    61     hard-coded link_id.
    60     a hard-coded link_id.
    62 
    61 
    63     Args:
    62     Args:
    64       fields: unused
    63       fields: unused
    65     """
    64     """
    66 
    65