コード例 #1
0
ファイル: core.py プロジェクト: joker234/skarphed
 def get_core_config(self, obj):
     """
     Passes the core config on to the Configuration class.
     This is the only time in a skarphed lifetime, that this happens.
     """
     if obj.__class__.__name__ != "Configuration":
         raise CoreException(CoreException.get_msg(1))
     else:
         return self._core_config
コード例 #2
0
ファイル: core.py プロジェクト: skarphed/skarphed
 def get_core_config(self,obj):
     """
     Passes the core config on to the Configuration class.
     This is the only time in a skarphed lifetime, that this happens.
     """
     if obj.__class__.__name__ != "Configuration":
         raise CoreException(CoreException.get_msg(1))
     else:
         return self._core_config
コード例 #3
0
ファイル: core.py プロジェクト: skarphed/skarphed
    def set_rendermode(self, mode):
        if not mode in ("pure", "ajax"):
            raise CoreException(CoreException.get_msg(2,mode))

        configuration = self.get_configuration()
        configuration.set_entry("core.rendermode", mode)
コード例 #4
0
ファイル: core.py プロジェクト: joker234/skarphed
    def set_rendermode(self, mode):
        if not mode in ("pure", "ajax"):
            raise CoreException(CoreException.get_msg(2, mode))

        configuration = self.get_configuration()
        configuration.set_entry("core.rendermode", mode)