def createInstance(self): from plone.formwidget.datetime.z3cform.widget import DatetimeWidget instance = DatetimeWidget(mock.Mock()) instance.name = 'field' return instance
def EndDateFieldWidget(field, request): widget = FieldWidget(field, DatetimeWidget(request)) widget.first_day = first_weekday_sun0 return widget
def createInstance(self): from plone.formwidget.datetime.z3cform.widget import DatetimeWidget instance = DatetimeWidget(mock.Mock()) instance.name = 'field' instance.field = schema.Datetime(title=u'field') return instance