app/soc/logic/models/site_settings.py
changeset 446 0b479d573a4c
parent 445 31927f21970d
child 481 94834a1e6c01
equal deleted inserted replaced
445:31927f21970d 446:0b479d573a4c
    41     """Defines the name, key_name and model for this entity.
    41     """Defines the name, key_name and model for this entity.
    42     """
    42     """
    43 
    43 
    44     self._name = "SiteSettings"
    44     self._name = "SiteSettings"
    45     self._model = soc.models.site_settings.SiteSettings
    45     self._model = soc.models.site_settings.SiteSettings
    46     # TODO: remove line below when SiteSettings is implemented using 
       
    47     # views.models.base.View approach
       
    48     self._keyName = key_name.nameSiteSettings
       
    49     self._skip_properties = []
    46     self._skip_properties = []
       
    47 
       
    48   def getMainKeyValues(self):
       
    49     """Returns the default key values for the site settings"""
       
    50 
       
    51     return [self.DEF_SITE_SETTINGS_PARTIAL_PATH, 
       
    52             self.DEF_SITE_SETTINGS_LINK_NAME]
    50 
    53 
    51 
    54 
    52 logic = Logic()
    55 logic = Logic()