Changeset 769dfd in indico
- Timestamp:
- 05/10/10 17:12:01 (3 years ago)
- Branches:
- master, burotel, hello-world-walkthrough, ipv6, new-webex, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
- Children:
- 3fa943
- Parents:
- 90be8b
- git-author:
- Leszek Syroka <leszek.marek.syroka@…> (04/19/10 11:39:14)
- git-committer:
- Jose Benito <jose.benito.gonzalez@…> (05/10/10 17:12:01)
- Location:
- indico/MaKaC
- Files:
-
- 6 edited
-
plugins/RoomBooking/CERN/roomCERN.py (modified) (1 diff)
-
rb_reservation.py (modified) (3 diffs)
-
webinterface/tpls/RoomBookingList.tpl (modified) (3 diffs)
-
webinterface/tpls/RoomBookingListItem.tpl (modified) (2 diffs)
-
webinterface/tpls/RoomBookingManyRoomsCalendar.tpl (modified) (2 diffs)
-
webinterface/wcomponents.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/plugins/RoomBooking/CERN/roomCERN.py
r719ebd9 r769dfd 41 41 def __eq__( self, other ): 42 42 try: 43 return self.id == other.id 44 except: 43 if self.id != None and other.id != None: 44 return self.id == other.id 45 else: 46 return self.name == other.name and self.building == other.building \ 47 and self.floor == other.floor and self.locationName == other.locationName 48 49 except AttributeError: 45 50 if self is None and other is None: 46 51 return True -
indico/MaKaC/rb_reservation.py
r777bc8 r769dfd 1 1 # -*- coding: utf-8 -*- 2 2 ## 3 ## $Id: rb_reservation.py,v 1.14 2009/05/14 18:05:51 jose Exp $ 3 4 ## 4 5 ## This file is part of CDS Indico. … … 1213 1214 1214 1215 1215 def splitToPeriods( self, endDT = None ):1216 def splitToPeriods( self, endDT = None, startDT = None ): 1216 1217 """ 1217 1218 Returns the list of Periods that represent this reservation. … … 1220 1221 For repeating ones, the list will include all repeatings. 1221 1222 """ 1222 lastDT = self.startDT - timedelta( 1 ) # One day before the beginning 1223 if startDT is None: 1224 lastDT = self.startDT - timedelta( 1 ) # One day before the beginning 1225 else: 1226 lastDT = startDT - timedelta( 1 ) 1227 1223 1228 periods = [] 1224 1229 -
indico/MaKaC/webinterface/tpls/RoomBookingList.tpl
r9033fd r769dfd 1 1 <script type="text/javascript"> 2 2 isOver = false 3 function handleMouseOverResv( id ) { 3 function handleMouseOverResv( id ) { 4 4 if ( isOver ) return 5 5 isOver = true … … 31 31 <td class="dataCaptionFormat"><%= _("Reason")%> /<br /><%= _("For whom")%></td> 32 32 <td class="dataCaptionFormat"> 33 <%= _("Next")%> / <%= _("Period")%> 33 <%= _("Next")%> / <%= _("Period")%> 34 34 <% inlineContextHelp( _("First line shows date of the <b>next repetition</b>.<br /><br /> Next lines show booking period, or just booking date for non-repeating bookings.") ) %> 35 35 </td> … … 40 40 <td class="titleCellTD" colspan="10" style="height: 0px"> </td> 41 41 </tr> 42 <% for r in reservations: %> 43 <% includeTpl( 'RoomBookingListItem', reservation = r, occurrence = r, withPhoto = True ) %> 44 <% end %> 42 <% includeTpl( 'RoomBookingListItem', unrolledReservations = reservations, withPhoto = True ) %> 45 43 <tr> 46 44 <td class="titleCellTD" colspan="10" style="height: 0px"> </td> -
indico/MaKaC/webinterface/tpls/RoomBookingListItem.tpl
r719ebd9 r769dfd 17 17 <% for collision in unrolledReservations: %> 18 18 <% 19 reservation = collision.withReservation 19 if hasattr(collision, 'withReservation'): 20 reservation = collision.withReservation 21 else: 22 reservation = collision 23 20 24 occurrence = collision 21 25 myDetails = bookingDetailsUH.getURL( reservation ) … … 41 45 42 46 %> 47 <% end %> 48 <% end %> 43 49 <% end %> 44 50 <% end %> -
indico/MaKaC/webinterface/tpls/RoomBookingManyRoomsCalendar.tpl
r90be8b r769dfd 48 48 <% for roomBars in bars[dayD]: %> 49 49 <% room = roomBars.room %> 50 <% bars = roomBars.bars %>51 50 <tr> 52 51 <!-- Room Column --> … … 67 66 68 67 <!-- Render each bar... --> 69 <% for bar in bars: %>68 <% for bar in roomBars.bars: %> 70 69 <% r = bar.forReservation %> 71 70 <% left = int( 1.0 * ( (bar.startDT.hour-START_H) * 60 + bar.startDT.minute ) / (24*60) * DAY_WIDTH_PX ) %> -
indico/MaKaC/webinterface/wcomponents.py
r8b64ae r769dfd 6249 6249 6250 6250 for r in rh._resvs: 6251 for p in r.splitToPeriods(endDT=calendarEndDT ):6251 for p in r.splitToPeriods(endDT=calendarEndDT, startDT=calendarStartDT): 6252 6252 if p.startDT >= calendarStartDT and p.endDT <= calendarEndDT: 6253 6253 collisionsOfResvs.append( Collision( ( p.startDT, p.endDT ), r ) )
Note: See TracChangeset
for help on using the changeset viewer.
