Changeset 56899a in indico
- Timestamp:
- 06/14/10 16:59:50 (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:
- c4a9d4
- Parents:
- 295bac
- git-author:
- Leszek Syroka <leszek.marek.syroka@…> (05/21/10 15:37:26)
- git-committer:
- Jose Benito <jose.benito.gonzalez@…> (06/14/10 16:59:50)
- Location:
- indico/MaKaC
- Files:
-
- 3 edited
-
common/info.py (modified) (1 diff)
-
rb_location.py (modified) (3 diffs)
-
webinterface/rh/JSContent.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/common/info.py
rbdd862 r56899a 291 291 def setRoomBookingModuleActive( self, active = False ): 292 292 self._roomBookingModuleActive = active 293 from MaKaC.webinterface.rh.JSContent import RHGetVarsJs 294 RHGetVarsJs.removeTmpVarsFile() 293 295 294 296 # Only for default Indico/ZODB plugin -
indico/MaKaC/rb_location.py
r3fa943 r56899a 125 125 root = MaKaC.common.DBMgr.getInstance().getDBConnection().root() 126 126 root[_DEFAULT_ROOM_BOOKING_LOCATION] = locationName 127 from MaKaC.webinterface.rh.JSContent import RHGetVarsJs 128 RHGetVarsJs.removeTmpVarsFile() 127 129 128 130 @staticmethod … … 150 152 locations.append( location ) 151 153 root[_ROOM_BOOKING_LOCATION_LIST] = locations 154 from MaKaC.webinterface.rh.JSContent import RHGetVarsJs 155 RHGetVarsJs.removeTmpVarsFile() 152 156 153 157 @staticmethod … … 160 164 locations = [ loc for loc in locations if loc.friendlyName != locationName ] 161 165 root[_ROOM_BOOKING_LOCATION_LIST] = locations 166 from MaKaC.webinterface.rh.JSContent import RHGetVarsJs 167 RHGetVarsJs.removeTmpVarsFile() 162 168 163 169 @staticmethod -
indico/MaKaC/webinterface/rh/JSContent.py
r8459f9 r56899a 14 14 class RHTemplateContentJS(base.RH): 15 15 _uh = urlHandlers.Build("JSContent.py") 16 _tplName = '' 16 17 17 18 def __init__(self, req): … … 57 58 self._req.status = apache.HTTP_NOT_MODIFIED 58 59 self._doProcess = False 60 else: 61 self._regenerate = True 59 62 else: 60 63 # file needs to be regenerated 61 self._regenerate = True ;64 self._regenerate = True 62 65 63 66 … … 98 101 _uh = urlHandlers.Derive(RHTemplateContentJS, "getVars") 99 102 103 _tplName = 'vars.js' 104 100 105 def __init__(self, req): 101 106 RHTemplateContentJS.__init__(self, req) 102 self._tplName = 'vars.js';103 107 self._dict = {} 104 108 109 @classmethod 110 def removeTmpVarsFile(cls): 111 cfg = Config.getInstance() 112 fileName = cfg.getTPLFile( cls._tplName ) 113 114 if fileName == "": 115 fileName = "%s.tpl"%cls._tplName 116 117 htmlPath = os.path.join(cfg.getTempDir(), fileName+".tmp") 118 if os.access(htmlPath, os.R_OK): 119 os.remove(htmlPath)
Note: See TracChangeset
for help on using the changeset viewer.
