Changeset 3cc806 in indico
- Timestamp:
- 02/04/10 18:55:27 (3 years ago)
- Branches:
- prov-dual-interface
- Children:
- cdec77
- Parents:
- 8577c6 (diff), 0d29a2 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- indico
- Files:
-
- 3 added
- 8 edited
-
MaKaC/conference.py (modified) (5 diffs)
-
MaKaC/webinterface/materialFactories.py (modified) (4 diffs)
-
MaKaC/webinterface/rh/base.py (modified) (2 diffs)
-
MaKaC/webinterface/rh/conferenceBase.py (modified) (1 diff)
-
MaKaC/webinterface/rh/switchInterface.py (added)
-
MaKaC/webinterface/stylesheets/include/indico.xsl (modified) (2 diffs)
-
MaKaC/webinterface/tpls/HTMLHeader.tpl (modified) (2 diffs)
-
MaKaC/webinterface/tpls/Header.tpl (modified) (1 diff)
-
MaKaC/webinterface/tpls/InterfaceSwitcher.tpl (added)
-
MaKaC/webinterface/urlHandlers.py (modified) (1 diff)
-
htdocs/switchInterface.py (added)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/conference.py
rf6f550 r0d29a2 401 401 recMat.recover() 402 402 self.notifyModification() 403 404 def getMaterialRegistry(self): 405 """ 406 Return the correct material registry for this type 407 """ 408 from MaKaC.webinterface.materialFactories import CategoryMFRegistry 409 return CategoryMFRegistry 403 410 404 411 def getMaterialById( self, matId ): … … 4045 4052 self.notifyModification() 4046 4053 4054 def getMaterialRegistry(self): 4055 """ 4056 Return the correct material registry for this type 4057 """ 4058 from MaKaC.webinterface.materialFactories import ConfMFRegistry 4059 return ConfMFRegistry 4060 4047 4061 def getMaterialById( self, matId ): 4048 4062 if matId.lower() == 'paper': … … 6485 6499 self.notifyModification() 6486 6500 6501 def getMaterialRegistry(self): 6502 """ 6503 Return the correct material registry for this type 6504 """ 6505 from MaKaC.webinterface.materialFactories import SessionMFRegistry 6506 return SessionMFRegistry 6507 6487 6508 def getMaterialById( self, matId ): 6488 6509 if matId.lower() == 'minutes': … … 9216 9237 self.notifyModification() 9217 9238 9239 def getMaterialRegistry(self): 9240 """ 9241 Return the correct material registry for this type 9242 """ 9243 from MaKaC.webinterface.materialFactories import ContribMFRegistry 9244 return ContribMFRegistry 9245 9218 9246 def getMaterialById( self, matId ): 9219 9247 if matId.lower() == 'paper': … … 10483 10511 self.notifyModification() 10484 10512 10513 def getMaterialRegistry(self): 10514 """ 10515 Return the correct material registry for this type 10516 """ 10517 from MaKaC.webinterface.materialFactories import SubContributionMFRegistry 10518 return SubContributionMFRegistry 10519 10485 10520 def getMaterialById( self, matId ): 10486 10521 if matId.lower() == 'paper': -
indico/MaKaC/webinterface/materialFactories.py
rdebb1b r0d29a2 20 20 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 21 21 22 import MaKaC.conference as conference 22 23 import MaKaC.webinterface.urlHandlers as urlHandlers 23 24 import MaKaC.webinterface.wcomponents as wcomponents 24 import MaKaC.conference as conference25 25 from MaKaC.common.Configuration import Config 26 26 from MaKaC.i18n import _ … … 399 399 for factory in cls._registry.values(): 400 400 if factory.appliesToMaterial(mat): 401 return factory 401 return factory 402 402 403 403 … … 409 409 VideoFactory._id: VideoFactory, \ 410 410 PosterFactory._id: PosterFactory } 411 412 411 413 412 class SessionMFRegistry( MaterialFactoryRegistry ): … … 422 421 PosterFactory._id: PosterFactory } 423 422 424 423 class CategoryMFRegistry( ContribMFRegistry ): 424 pass 425 426 class SubContributionMFRegistry( ContribMFRegistry ): 427 pass -
indico/MaKaC/webinterface/rh/base.py
rba2d45 r56c3ca 407 407 return p.display() 408 408 409 ### SWITCHER 410 def _checkInterfaceSwitchNeeded(self): 411 412 from MaKaC.webinterface.session.base import RequestWrapper 413 414 interface = RequestWrapper(self._req).cookies.get("INDICO_INTERFACE") 415 if interface == 'past': 416 current_url = self._req.construct_url(self._req.unparsed_uri) 417 self._redirect(current_url.replace('indicobeta.cern.ch','indico.cern.ch')) 418 ### *** 419 409 420 def process( self, params ): 410 421 """ … … 442 453 self._setSessionUser() 443 454 self._setLang() 455 456 ### SWITCHER 457 self._checkInterfaceSwitchNeeded(); 458 ### *** 444 459 445 460 if self._getUser(): -
indico/MaKaC/webinterface/rh/conferenceBase.py
r0f1000 r0d29a2 282 282 """ 283 283 284 mf = materialFactories.ContribMFRegistry.getById(self._materialId)284 mf = self._target.getMaterialRegistry().getById(self._materialId) 285 285 286 286 material = mf.get(self._target) -
indico/MaKaC/webinterface/stylesheets/include/indico.xsl
r40fafb r9161a3 277 277 </em> 278 278 </xsl:if> 279 280 <xsl:if 281 test="count(./location) != 0 and normalize-space(string(../location)) != normalize-space(string(./location))" 282 > 283 <span style="margin-left: 15px;">( 284 <xsl:apply-templates select="./location"> 285 <xsl:with-param name="span"/> 286 </xsl:apply-templates>)</span> 287 </xsl:if> 288 289 279 290 </span> 280 291 … … 325 336 </tr> 326 337 </xsl:if> 327 328 <xsl:if329 test="count(./location) != 0 and normalize-space(string(../location)) != normalize-space(string(./location))"330 > (<xsl:apply-templates select="./location">331 <xsl:with-param name="span"/>332 </xsl:apply-templates>) </xsl:if>333 338 334 339 </tbody> -
indico/MaKaC/webinterface/tpls/HTMLHeader.tpl
rd50f2e r9161a3 1 1 <% declareTemplate(newTemplateStyle=True) %> 2 2 3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 3 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 4 "http://www.w3.org/TR/html4/loose.dtd"> 4 5 <html> 5 6 <head> 6 7 <title><%= page._getTitle() %><%= area %></title> 8 <meta http-equiv="X-UA-Compatible" content="IE=8" /> 9 7 10 <link rel="shortcut icon" type="image/x-icon" href="<%= systemIcon('addressBarIcon') %>"> 8 11 <link rel="stylesheet" type="text/css" href="<%= baseurl %>/css/<%= stylesheet %>"> … … 10 13 11 14 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 12 <meta http-equiv="X-UA-Compatible" content="IE=8" />13 15 14 16 <script type="text/javascript"> -
indico/MaKaC/webinterface/tpls/Header.tpl
r37b248 rf65b26 1 1 <% declareTemplate(newTemplateStyle = True) %> 2 2 3 <% includeTpl('InterfaceSwitcher') %> 3 4 <% includeTpl('Announcement') %> 4 5 -
indico/MaKaC/webinterface/urlHandlers.py
r9f45f3 rad2912 4503 4503 return cls.displayUHs.get("%s%s"%(klazz.__name__, type), None) 4504 4504 4505 # Testing helloworld 4506 class UHHelloWorld(URLHandler): 4507 _relativeURL = "helloWorld.py" 4508 4509 @classmethod 4510 def getURL( cls, name=None ): 4505 class UHSwitchInterface( URLHandler ): 4506 _relativeURL = "switchInterface.py" 4507 4508 def getURL( cls, whereTo, returnURL="" ): 4509 """ 4510 whereTo - 'future' or 'past' 4511 """ 4511 4512 url = cls._getURL() 4512 if name != None: 4513 url.addParam("name", name) 4513 if str(returnURL).strip() == "": 4514 url.addParam( "returnURL", UHWelcome.getURL()) 4515 else: 4516 url.addParam( "returnURL", returnURL ) 4517 url.addParam("to", whereTo) 4514 4518 return url 4519
Note: See TracChangeset
for help on using the changeset viewer.
