本文整理汇总了Python中indico.modules.rb.models.reservations.RepeatMapping.getMapping方法的典型用法代码示例。如果您正苦于以下问题:Python RepeatMapping.getMapping方法的具体用法?Python RepeatMapping.getMapping怎么用?Python RepeatMapping.getMapping使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类indico.modules.rb.models.reservations.RepeatMapping
的用法示例。
在下文中一共展示了RepeatMapping.getMapping方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _process
# 需要导入模块: from indico.modules.rb.models.reservations import RepeatMapping [as 别名]
# 或者: from indico.modules.rb.models.reservations.RepeatMapping import getMapping [as 别名]
def _process(self):
key = str(sorted(dict(request.args, lang=session.lang, user=session.user.getId()).items()))
html = self._cache.get(key)
if not html:
default_location = Location.default_location
aspects = [a.to_serializable() for a in default_location.aspects]
buildings = default_location.get_buildings()
html = WPRoomBookingMapOfRoomsWidget(self,
aspects=aspects,
buildings=buildings,
room_id=self._room_id,
default_repeat='{}|0'.format(RepeatFrequency.NEVER),
default_start_dt=datetime.combine(date.today(),
Location.working_time_start),
default_end_dt=datetime.combine(date.today(),
Location.working_time_end),
repeat_mapping=RepeatMapping.getMapping()).display()
self._cache.set(key, html, 3600)
return html