def NavigationTypeWidget(field, request): widget = z3c.form.widget.FieldWidget(field, z3cform_SelectWidget(request)) widget.addClass('pat-castledynamicform') return widget
def UseQueryWidget(field, request): widget = z3c.form.widget.FieldWidget(field, SingleCheckBoxWidget(request)) widget.addClass('pat-castledynamicform') return widget