Пример #1
0
 def isCheckBoxLayout(self, field_name):
     widget = self.widgets[field_name]
     return (ICheckBoxWidgetLayout.providedBy(widget)
             and not IMultiLineWidgetLayout.providedBy(widget))
Пример #2
0
 def isCheckBoxLayout(self, field_name):
     widget = self.widgets[field_name]
     return ICheckBoxWidgetLayout.providedBy(widget) and not IMultiLineWidgetLayout.providedBy(widget)
Пример #3
0
 def isSingleLineLayout(self, field_name):
     widget = self.widgets[field_name]
     return not (IMultiLineWidgetLayout.providedBy(widget)
                 or ICheckBoxWidgetLayout.providedBy(widget))
Пример #4
0
 def isSingleLineLayout(self, field_name):
     widget = self.widgets[field_name]
     return not (IMultiLineWidgetLayout.providedBy(widget) or ICheckBoxWidgetLayout.providedBy(widget))