コード例 #1
0
 def createInstance(self):
     from plone.formwidget.datetime.z3cform.widget import DatetimeWidget
     instance = DatetimeWidget(mock.Mock())
     instance.name = 'field'
     return instance
コード例 #2
0
 def createInstance(self):
     from plone.formwidget.datetime.z3cform.widget import DatetimeWidget
     instance = DatetimeWidget(mock.Mock())
     instance.name = 'field'
     return instance
コード例 #3
0
ファイル: behaviors.py プロジェクト: gyst/plone.app.event
def EndDateFieldWidget(field, request):
    widget = FieldWidget(field, DatetimeWidget(request))
    widget.first_day = first_weekday_sun0
    return widget
コード例 #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