示例#1
0
 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
示例#2
0
文件: forum.py 项目: lslaz1/karl
    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
示例#3
0
文件: forum.py 项目: lslaz1/karl
    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
示例#4
0
文件: wiki.py 项目: disko/karl
 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
示例#5
0
文件: commenting.py 项目: lslaz1/karl
 def form_defaults(self):
     if self.show_sendalert:
         return {'sendalert': sendalert_default(self.context,
                                                self.request)}
     return {}
示例#6
0
文件: test_utils.py 项目: iotest3/new
 def _call_fut(self, context, request):
     from karl.content.views.utils import sendalert_default
     return sendalert_default(context, request)
示例#7
0
 def form_defaults(self):
     if self.show_sendalert:
         return {'sendalert': sendalert_default(self.context, self.request)}
     return {}
示例#8
0
文件: test_utils.py 项目: lslaz1/karl
 def _call_fut(self, context, request):
     from karl.content.views.utils import sendalert_default
     return sendalert_default(context, request)