Changeset f6f550 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, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
- Children:
- ca129b
- Parents:
- eb09202
- git-author:
- Pedro Ferreira <jose.pedro.ferreira@…> (01/26/10 16:07:42)
- git-committer:
- Pedro Ferreira <jose.pedro.ferreira@…> (01/28/10 17:46:06)
- Location:
- indico
- Files:
-
- 5 edited
-
MaKaC/conference.py (modified) (5 diffs)
-
MaKaC/services/implementation/schedule.py (modified) (1 diff)
-
MaKaC/webinterface/rh/contribMod.py (modified) (1 diff)
-
htdocs/js/indico/Management/RoomBooking.js (modified) (1 diff)
-
htdocs/js/indico/Management/Timetable.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/conference.py
reb09202 rf6f550 5664 5664 return color 5665 5665 5666 def setValues( self, sessionData,check=2,moveEntries=0 , isEdit = False):5666 def setValues( self, sessionData,check=2,moveEntries=0 ): 5667 5667 """Sets all the values of the current session object from a dictionary 5668 5668 containing the following key-value pairs: … … 5712 5712 self.setTextColor(self._getCorrectTextColor(textcolor)) 5713 5713 self.setTextColorToLinks(sessionData.has_key("textcolortolinks")) 5714 #if the location is not defined we set the location of the session 5715 # to None so it will be considered to be the same as for the 5716 # conference 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: 5721 self.setLocation( None ) 5722 else: 5723 #if the location name is defined we must set a new location (or 5724 # modify the existing one) for the session 5714 5715 if "locationName" in sessionData: 5725 5716 loc = self.getOwnLocation() 5726 5717 if not loc: … … 5729 5720 loc.setName( sessionData["locationName"] ) 5730 5721 loc.setAddress( sessionData.get("locationAddress", "") ) 5722 5731 5723 #same as for the location 5732 if sessionData.get( "roomName", "" ).strip() == "" and not isEdit: 5733 self.setRoom( None ) 5734 else: 5724 if "roomName" in sessionData: 5735 5725 room = self.getOwnRoom() 5736 5726 if not room: … … 5738 5728 self.setRoom( room ) 5739 5729 room.setName( sessionData["roomName"] ) 5730 5740 5731 if sessionData.get("sDate",None) is not None: 5741 5732 self.setStartDate(sessionData["sDate"],check,moveEntries=moveEntries) … … 8038 8029 if data.has_key("f_%s"%id): 8039 8030 self.setField(id, data["f_%s"%id]) 8040 #if the location is not defined we set the location of the contribution 8041 # to None so it will be considered to be the same as for the 8042 # conference 8043 if data.has_key("locationName"): 8044 # if data["locationName"].strip()=="": 8045 # self.setLocation(None) 8046 #else: 8047 #if the location name is defined we must set a new location (or 8048 # modify the existing one) for the contribution 8049 loc=self.getOwnLocation() 8050 if not loc: 8051 loc=CustomLocation() 8052 self.setLocation(loc) 8053 loc.setName(data["locationName"]) 8054 loc.setAddress(data.get("locationAddress", "")) 8031 8032 if "locationName" in data: 8033 loc=self.getOwnLocation() 8034 if not loc: 8035 loc=CustomLocation() 8036 self.setLocation(loc) 8037 loc.setName(data["locationName"]) 8038 loc.setAddress(data.get("locationAddress", "")) 8039 8055 8040 #same as for the location 8056 if data.has_key("roomName"): 8057 # if data["roomName"].strip()=="": 8058 # self.setRoom(None) 8059 #else: 8060 room=self.getOwnRoom() 8061 if not room: 8062 room=CustomRoom() 8063 self.setRoom(room) 8064 room.setName(data["roomName"]) 8041 if "roomName" in data: 8042 room=self.getOwnRoom() 8043 if not room: 8044 room=CustomRoom() 8045 self.setRoom(room) 8046 room.setName(data["roomName"]) 8065 8047 tz = 'UTC' 8066 8048 if self.getConference(): -
indico/MaKaC/services/implementation/schedule.py
reb09202 rf6f550 56 56 57 57 if location != None: 58 #if location.strip()=="": 59 # target.setLocation(None) 60 #else: 61 loc = target.getOwnLocation() 62 if not loc: 63 loc = conference.CustomLocation() 64 target.setLocation(loc) 65 loc.setName(location) 66 loc.setAddress(address) 58 loc = target.getOwnLocation() 59 if not loc: 60 loc = conference.CustomLocation() 61 target.setLocation(loc) 62 loc.setName(location) 63 loc.setAddress(address) 64 67 65 #same as for the location 68 66 if room != None: 69 #if room.strip()=="": 70 # target.setRoom(None) 71 #else: 72 r = target.getOwnRoom() 73 if not r: 74 r = conference.CustomRoom() 75 target.setRoom(r) 76 r.setName(room) 67 r = target.getOwnRoom() 68 if not r: 69 r = conference.CustomRoom() 70 target.setRoom(r) 71 r.setName(room) 77 72 78 73 class ScheduleOperation: -
indico/MaKaC/webinterface/rh/contribMod.py
reb09202 rf6f550 748 748 params["sHour"] = "" 749 749 params["sMinute"] = "" 750 750 751 751 if params.has_key("duration"): 752 752 params["durMins"] = params["duration"]; 753 753 else: 754 params["durMins"] = "" 754 params["durMins"] = "" 755 755 self._target.setValues(params) 756 756 self._target.setType(self._type) -
indico/htdocs/js/indico/Management/RoomBooking.js
reb09202 rf6f550 161 161 162 162 self._startBind(); 163 self.info.set('location', '');164 self.info.set('room', '');165 self.info.set('address', '');166 163 } 167 164 }); -
indico/htdocs/js/indico/Management/Timetable.js
reb09202 rf6f550 3 3 4 4 return (!info) || 5 (! info.get('location')) ||6 (! info.get('room'));5 (!exists(info.get('location'))) || 6 (!exists(info.get('room'))); 7 7 } 8 8 … … 798 798 this.timeField, 799 799 this.isEdit); 800 800 801 801 invertableBind(this.info.accessor('inheritLoc'), 802 802 this.roomEditor.inheritCheckbox.get(), 803 803 false); 804 804 805 805 invertableBind(this.info.accessor('inheritRoom'), 806 806 this.roomEditor.inheritCheckbox.get(), 807 false); 807 false); 808 808 809 809 self.parameterManager.add(self.startTimeField, 'time', false);
Note: See TracChangeset
for help on using the changeset viewer.
