def RecurrenceFieldWidget(field, request): # Please note: If you create a new behavior with superclasses IEventBasic # and IRecurrence, then you have to reconfigure the dotted path value of # the start_field parameter for the RecurrenceWidget to the new # behavior name, like: IMyNewBehaviorName.start. widget = FieldWidget(field, RecurrenceWidget(request)) widget.start_field = 'IEventBasic.start' widget.first_day = first_weekday_sun0 widget.show_repeat_forever = False return widget
def EndDateFieldWidget(field, request): widget = FieldWidget(field, DatetimeWidget(request)) widget.first_day = first_weekday_sun0 return widget