Changeset cdec77 in indico


Ignore:
Timestamp:
02/05/10 15:51:05 (3 years ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
Branches:
prov-dual-interface
Children:
c220d5
Parents:
3cc806 (diff), 8f6f66 (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.
Message:

Merge branch 'v0.97-series' into prov-dual-interface

Location:
indico
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/export/excel.py

    rf6c76f r8f6f66  
    149149                if key == "Id": 
    150150                    excelGen.addValue(reg.getId()) 
    151                 if key == "Email": 
     151                elif key == "Email": 
    152152                    excelGen.addValue(reg.getEmail()) 
    153153                elif key == "Institution": 
  • indico/MaKaC/webinterface/rh/base.py

    rba2d45 r56c3ca  
    407407        return p.display() 
    408408 
     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 
    409420    def process( self, params ): 
    410421        """ 
     
    442453                        self._setSessionUser() 
    443454                        self._setLang() 
     455 
     456                        ### SWITCHER 
     457                        self._checkInterfaceSwitchNeeded(); 
     458                        ### *** 
    444459 
    445460                        if self._getUser(): 
  • indico/MaKaC/webinterface/tpls/Header.tpl

    r37b248 rf65b26  
    11<% declareTemplate(newTemplateStyle = True) %> 
    22 
     3<% includeTpl('InterfaceSwitcher') %> 
    34<% includeTpl('Announcement') %> 
    45 
  • indico/MaKaC/webinterface/urlHandlers.py

    r9f45f3 rad2912  
    45034503        return cls.displayUHs.get("%s%s"%(klazz.__name__, type), None) 
    45044504 
    4505 # Testing helloworld 
    4506 class UHHelloWorld(URLHandler): 
    4507     _relativeURL = "helloWorld.py" 
    4508  
    4509     @classmethod 
    4510     def getURL( cls, name=None ): 
     4505class UHSwitchInterface( URLHandler ): 
     4506    _relativeURL = "switchInterface.py" 
     4507 
     4508    def getURL( cls, whereTo, returnURL="" ): 
     4509        """ 
     4510        whereTo - 'future' or 'past' 
     4511        """ 
    45114512        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) 
    45144518        return url 
     4519 
Note: See TracChangeset for help on using the changeset viewer.