def createInstance(self):
     from plone.formwidget.datetime.z3cform.widget import DatetimeWidget
     instance = DatetimeWidget(mock.Mock())
     instance.name = 'field'
     return instance
Esempio n. 2
0
 def createInstance(self):
     from plone.formwidget.datetime.z3cform.widget import DatetimeWidget
     instance = DatetimeWidget(mock.Mock())
     instance.name = 'field'
     return instance
Esempio n. 3
0
def EndDateFieldWidget(field, request):
    widget = FieldWidget(field, DatetimeWidget(request))
    widget.first_day = first_weekday_sun0
    return widget
Esempio n. 4
0
 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