本文整理汇总了Python中z3c.form.widget.FieldWidget.first_day方法的典型用法代码示例。如果您正苦于以下问题:Python FieldWidget.first_day方法的具体用法?Python FieldWidget.first_day怎么用?Python FieldWidget.first_day使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类z3c.form.widget.FieldWidget
的用法示例。
在下文中一共展示了FieldWidget.first_day方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: RecurrenceFieldWidget
# 需要导入模块: from z3c.form.widget import FieldWidget [as 别名]
# 或者: from z3c.form.widget.FieldWidget import first_day [as 别名]
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
示例2: EndDateFieldWidget
# 需要导入模块: from z3c.form.widget import FieldWidget [as 别名]
# 或者: from z3c.form.widget.FieldWidget import first_day [as 别名]
def EndDateFieldWidget(field, request):
widget = FieldWidget(field, DatetimeWidget(request))
widget.first_day = first_weekday_sun0
return widget