本文整理汇总了Python中plone.app.event.dx.behaviors.IEventBasic.setTaggedValue方法的典型用法代码示例。如果您正苦于以下问题:Python IEventBasic.setTaggedValue方法的具体用法?Python IEventBasic.setTaggedValue怎么用?Python IEventBasic.setTaggedValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类plone.app.event.dx.behaviors.IEventBasic
的用法示例。
在下文中一共展示了IEventBasic.setTaggedValue方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: EventSchema
# 需要导入模块: from plone.app.event.dx.behaviors import IEventBasic [as 别名]
# 或者: from plone.app.event.dx.behaviors.IEventBasic import setTaggedValue [as 别名]
from zope import schema
from plone.autoform.interfaces import WIDGETS_KEY
from plone.app.event.dx.behaviors import IEventBasic
from plone.supermodel import model
from plone.namedfile.field import NamedBlobImage
from collective.rcse.i18n import _
from collective.z3cform.html5widgets.widget_datetime import DateTimeWidget
#override event basic widgets
IEventBasic.setTaggedValue(
WIDGETS_KEY, {'start': DateTimeWidget,
'end': DateTimeWidget}
)
class EventSchema(model.Schema):
"""event extra fields"""
image = NamedBlobImage(title=_(u"Image"),
description=_(u"image_description"),
required=False)
urlMedia = schema.URI(title=_(u"Media URL"),
description=_(u"urlMedia_description"),
required=False)
urlGMaps = schema.URI(title=_(u"Google Maps URL"),
description=_(u"urlGMaps_description"),
required=False)