Changeset eb09202 in indico
- Timestamp:
- 01/28/10 17:46:06 (3 years ago)
- Branches:
- master, burotel, hello-world-walkthrough, ipv6, new-webex, prov-dual-interface, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, b8c30da8ebdbdcbd675a873997cc3e95f567de49, 4287315ec967a3da168d83963c14001db8487d53
- Children:
- f6f550
- Parents:
- 019367
- git-author:
- Cesar Munoz Orena <cesar.munoz.orena@…> (01/26/10 10:40:09)
- git-committer:
- Pedro Ferreira <jose.pedro.ferreira@…> (01/28/10 17:46:06)
- Location:
- indico
- Files:
-
- 9 edited
-
MaKaC/conference.py (modified) (5 diffs)
-
MaKaC/schedule.py (modified) (3 diffs)
-
MaKaC/services/implementation/schedule.py (modified) (3 diffs)
-
MaKaC/webinterface/pages/contributions.py (modified) (2 diffs)
-
MaKaC/webinterface/rh/contribMod.py (modified) (1 diff)
-
MaKaC/webinterface/rh/sessionModif.py (modified) (1 diff)
-
htdocs/js/indico/Management/RoomBooking.js (modified) (1 diff)
-
htdocs/js/indico/Management/Timetable.js (modified) (2 diffs)
-
htdocs/js/indico/Timetable/Management.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/conference.py
r03e2c9 reb09202 5664 5664 return color 5665 5665 5666 def setValues( self, sessionData,check=2,moveEntries=0 ):5666 def setValues( self, sessionData,check=2,moveEntries=0, isEdit = False ): 5667 5667 """Sets all the values of the current session object from a dictionary 5668 5668 containing the following key-value pairs: … … 5715 5715 # to None so it will be considered to be the same as for the 5716 5716 # conference 5717 if sessionData.get( "locationName", "" ).strip() == "": 5717 #if we are creating the session we need to set the location as none, but if it's an edit 5718 #it is neccesary to leave the location as "", because otherwise it will inherit it from the 5719 #parent even if the checkbox is not checked 5720 if sessionData.get( "locationName", "" ).strip() == "" and not isEdit: 5718 5721 self.setLocation( None ) 5719 5722 else: … … 5727 5730 loc.setAddress( sessionData.get("locationAddress", "") ) 5728 5731 #same as for the location 5729 if sessionData.get( "roomName", "" ).strip() == "" :5732 if sessionData.get( "roomName", "" ).strip() == "" and not isEdit: 5730 5733 self.setRoom( None ) 5731 5734 else: … … 8039 8042 # conference 8040 8043 if data.has_key("locationName"): 8041 if data["locationName"].strip()=="":8042 self.setLocation(None)8043 else:8044 # if data["locationName"].strip()=="": 8045 # self.setLocation(None) 8046 #else: 8044 8047 #if the location name is defined we must set a new location (or 8045 8048 # modify the existing one) for the contribution … … 8052 8055 #same as for the location 8053 8056 if data.has_key("roomName"): 8054 if data["roomName"].strip()=="":8055 self.setRoom(None)8056 else:8057 # if data["roomName"].strip()=="": 8058 # self.setRoom(None) 8059 #else: 8057 8060 room=self.getOwnRoom() 8058 8061 if not room: -
indico/MaKaC/schedule.py
r03e2c9 reb09202 137 137 1: check and raise error in case of problem 138 138 2: check and adapt the owner dates""" 139 140 139 if entry.isScheduled(): 141 140 # remove it from the old schedule and add it to this one … … 728 727 729 728 owner = self.getOwner() 730 731 729 if (entry is None) or self.hasEntry(entry): 732 730 return … … 1171 1169 1172 1170 def setValues( self, data, check=2, moveEntriesBelow=0, tz='UTC'): 1173 1174 1171 from MaKaC.conference import CustomLocation, CustomRoom 1175 1172 # In order to move the entries below, it is needed to know the diff (we have to move them) -
indico/MaKaC/services/implementation/schedule.py
rc10907 reb09202 56 56 57 57 if location != None: 58 if location.strip()=="":59 target.setLocation(None)60 else:58 #if location.strip()=="": 59 # target.setLocation(None) 60 #else: 61 61 loc = target.getOwnLocation() 62 62 if not loc: … … 67 67 #same as for the location 68 68 if room != None: 69 if room.strip()=="":70 target.setRoom(None)71 else:69 #if room.strip()=="": 70 # target.setRoom(None) 71 #else: 72 72 r = target.getOwnRoom() 73 73 if not r: … … 380 380 381 381 self._setLocationInfo(self._brk) 382 383 382 self._addToSchedule(self._brk) 384 383 -
indico/MaKaC/webinterface/pages/contributions.py
rcbf814 reb09202 1277 1277 locationName = self._contrib.getLocation().getName() 1278 1278 locationAddress = self._contrib.getLocation().getAddress() 1279 1279 1280 if self._contrib.getOwnRoom(): 1280 1281 defaultDefineRoom= "checked" … … 1338 1339 minfo = info.HelperMaKaCInfo.getMaKaCInfoInstance() 1339 1340 vars["useRoomBookingModule"] = minfo.getRoomBookingModuleActive() 1340 1341 1341 return vars 1342 1342 -
indico/MaKaC/webinterface/rh/contribMod.py
r9033fd reb09202 752 752 params["durMins"] = params["duration"]; 753 753 else: 754 params["durMins"] = "" 755 754 params["durMins"] = "" 756 755 self._target.setValues(params) 757 756 self._target.setType(self._type) -
indico/MaKaC/webinterface/rh/sessionModif.py
r9033fd reb09202 254 254 int( params["eMinute"] ))) 255 255 params["eDate"] = ed.astimezone(timezone('UTC')) 256 self._target.setValues(params,self._check,self._slmove )256 self._target.setValues(params,self._check,self._slmove, True) 257 257 self._target.setScheduleType(params.get("tt_type",self._target.getScheduleType())) 258 258 -
indico/htdocs/js/indico/Management/RoomBooking.js
r66eb31 reb09202 159 159 self.roomChooser.enable(); 160 160 self.addressArea.enable(); 161 161 162 self._startBind(); 163 self.info.set('location', ''); 164 self.info.set('room', ''); 165 self.info.set('address', ''); 162 166 } 163 167 }); -
indico/htdocs/js/indico/Management/Timetable.js
rc10907 reb09202 634 634 var self = this; 635 635 636 637 636 each(self.args, function(value, key) { 638 637 self.info.set(key, value); … … 799 798 this.timeField, 800 799 this.isEdit); 800 801 invertableBind(this.info.accessor('inheritLoc'), 802 this.roomEditor.inheritCheckbox.get(), 803 false); 804 805 invertableBind(this.info.accessor('inheritRoom'), 806 this.roomEditor.inheritCheckbox.get(), 807 false); 801 808 802 809 self.parameterManager.add(self.startTimeField, 'time', false); -
indico/htdocs/js/indico/Timetable/Management.js
rc10907 reb09202 396 396 397 397 args.set('startDate', Util.formatDateTime(eventData.startDate, IndicoDateTimeFormats.Server)); 398 args.set('roomInfo',$O({"location": eventData.inheritLoc? null:eventData.location,398 args.set('roomInfo',$O({"location": eventData.inheritLoc?'':eventData.location, 399 399 "room": eventData.inheritRoom?null:eventData.room, 400 400 "address": eventData.inheritLoc?'':eventData.address}));
Note: See TracChangeset
for help on using the changeset viewer.
