def _process(self): an = getAnnoucementMgrInstance() an.setText(self.text) self._redirect(urlHandlers.UHAnnouncement.getURL())
def _process( self ): an = getAnnoucementMgrInstance() an.setText(self.text) self._redirect(urlHandlers.UHAnnouncement.getURL())
def api_announcement(self, aw): am = getAnnoucementMgrInstance() am.setText(self._message) return {'message': self._message}
def getVars(self): vars = wcomponents.WTemplated.getVars(self) an = getAnnoucementMgrInstance() vars["announcement"] = escape(an.getText()).replace("\"", """) return vars