本文整理匯總了Python中indico.modules.rb.controllers.user.reservations.RHRoomBookingNewBooking._make_confirm_form方法的典型用法代碼示例。如果您正苦於以下問題:Python RHRoomBookingNewBooking._make_confirm_form方法的具體用法?Python RHRoomBookingNewBooking._make_confirm_form怎麽用?Python RHRoomBookingNewBooking._make_confirm_form使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類indico.modules.rb.controllers.user.reservations.RHRoomBookingNewBooking
的用法示例。
在下文中一共展示了RHRoomBookingNewBooking._make_confirm_form方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: _make_confirm_form
# 需要導入模塊: from indico.modules.rb.controllers.user.reservations import RHRoomBookingNewBooking [as 別名]
# 或者: from indico.modules.rb.controllers.user.reservations.RHRoomBookingNewBooking import _make_confirm_form [as 別名]
def _make_confirm_form(self, *args, **kwargs):
if 'defaults' in kwargs:
obj = self._assign_to or self.event
kwargs['defaults'].booking_reason = _get_defaults_from_object(obj)['booking_reason']
return RHRoomBookingNewBooking._make_confirm_form(self, *args, **kwargs)