Пример #1
0
    def _checkParams(self):
        ProtectedModificationService._checkParams(self)

        pm = ParameterManager(self._params)

        l = locators.WebLocator()

        # TODO: This chain could (should) be repalced by a more generic
        # locator, something like:
        # l.setParams(self._params)
        # l.getObject() # retrieves whatever object has been extracted

        # will check cotnribution and session as well, as fallback cases
        l.setSubContribution(self._params, 0)
        # will check if it is compiling minutes
        self._compile = self._params.get("compile", False)

        self._target = l.getObject()

        # TODO: change str to some kind of html sanitization
        self._text = pm.extract("value", pType=str, allowEmpty=True)
Пример #2
0
    def _checkParams(self):
        ProtectedModificationService._checkParams(self)

        pm = ParameterManager(self._params)

        l = locators.WebLocator()

        # TODO: This chain could (should) be repalced by a more generic
        # locator, something like:
        # l.setParams(self._params)
        # l.getObject() # retrieves whatever object has been extracted

        # will check cotnribution and session as well, as fallback cases
        l.setSubContribution(self._params, 0)
        # will check if it is compiling minutes
        self._compile = self._params.get("compile", False)

        self._target = l.getObject()

        # TODO: change str to some kind of html sanitization
        self._text = pm.extract("value", pType=str, allowEmpty=True)
Пример #3
0
 def _checkParams(self):
     CategoryBase._checkParams(self)
     ProtectedModificationService._checkParams(self)
Пример #4
0
 def _checkParams(self):
     MaterialBase._checkParams(self)
     ProtectedModificationService._checkParams(self)
Пример #5
0
 def _checkParams(self):
     CategoryBase._checkParams(self)
     ProtectedModificationService._checkParams(self)
Пример #6
0
 def _checkParams(self):
     ContributionBase._checkParams(self)
     ProtectedModificationService._checkParams(self)
Пример #7
0
 def _checkParams(self):
     ConferenceBase._checkParams(self)
     ProtectedModificationService._checkParams(self)
Пример #8
0
 def _checkParams(self):
     ConferenceBase._checkParams(self)
     ProtectedModificationService._checkParams(self)
Пример #9
0
 def _checkParams(self):
     MaterialBase._checkParams(self)
     ProtectedModificationService._checkParams(self)
Пример #10
0
 def _checkParams(self):
     ContributionBase._checkParams(self)
     ProtectedModificationService._checkParams(self)