equal
deleted
inserted
replaced
24 |
24 |
25 from soc.logic import key_name |
25 from soc.logic import key_name |
26 from soc.logic.models import base |
26 from soc.logic.models import base |
27 from soc.logic.models import home_settings |
27 from soc.logic.models import home_settings |
28 |
28 |
|
29 import soc.models.home_settings |
29 import soc.models.site_settings |
30 import soc.models.site_settings |
30 |
31 |
31 |
32 |
32 class Logic(home_settings.Logic): |
33 class Logic(home_settings.Logic): |
33 """Logic methods for the SiteSettings model |
34 """Logic methods for the SiteSettings model |
38 DEF_SITE_HOME_DOC_LINK_NAME = 'home' |
39 DEF_SITE_HOME_DOC_LINK_NAME = 'home' |
39 |
40 |
40 def __init__(self): |
41 def __init__(self): |
41 """Defines the name, key_name and model for this entity. |
42 """Defines the name, key_name and model for this entity. |
42 """ |
43 """ |
43 |
44 base.Logic.__init__(self, soc.models.site_settings.SiteSettings, |
44 self._name = "SiteSettings" |
45 base_model=soc.models.home_settings.HomeSettings) |
45 self._model = soc.models.site_settings.SiteSettings |
|
46 self._skip_properties = [] |
|
47 |
46 |
48 def getMainKeyValues(self): |
47 def getMainKeyValues(self): |
49 """Returns the default key values for the site settings""" |
48 """Returns the default key values for the site settings""" |
50 |
49 |
51 return [self.DEF_SITE_SETTINGS_PARTIAL_PATH, |
50 return [self.DEF_SITE_SETTINGS_PARTIAL_PATH, |