Exemplo n.º 1
0
 def createRealInstance(self):
     from plone.formwidget.datetime.z3cform.widget import DateWidget
     request = {}
     instance = DateWidget(request)
     instance.drequest = request
     instance.name = 'field'
     return instance 
Exemplo n.º 2
0
 def createInstance(self):
     from plone.formwidget.datetime.z3cform.widget import DateWidget
     instance = DateWidget(mock.Mock())
     instance.name = 'field'
     return instance
Exemplo n.º 3
0
 def createInstance(self):
     from plone.formwidget.datetime.z3cform.widget import DateWidget
     instance = DateWidget(mock.Mock())
     instance.name = 'field'
     instance.field = schema.Date(title=u'field')
     return instance