def form_defaults(self): defaults = { 'title': self.request.params.get('title', ''), 'tags': [], 'text': '', 'sendalert': sendalert_default(self.context, self.request) } if self.workflow is not None: defaults['security_state'] = self.workflow.initial_state return defaults
def form_defaults(self): defaults = { 'title': '', 'description': '', 'sendalert': sendalert_default(self.context, self.request)} if self.workflow is not None: defaults['security_state'] = self.workflow.initial_state return defaults
def form_defaults(self): defaults = { 'title': '', 'description': '', 'sendalert': sendalert_default(self.context, self.request) } if self.workflow is not None: defaults['security_state'] = self.workflow.initial_state return defaults
def form_defaults(self): defaults = { 'title':self.request.params.get('title', ''), 'tags':[], 'text':'', 'sendalert': sendalert_default(self.context, self.request) } if self.workflow is not None: defaults['security_state'] = self.workflow.initial_state return defaults
def form_defaults(self): if self.show_sendalert: return {'sendalert': sendalert_default(self.context, self.request)} return {}
def _call_fut(self, context, request): from karl.content.views.utils import sendalert_default return sendalert_default(context, request)