Changeset f88925 in indico


Ignore:
Timestamp:
08/05/11 17:50:16 (22 months ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
Branches:
master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
Children:
35761c
Parents:
601a65
git-author:
Alexis Castilla Hernandez <alexis.castilla.hernandez@…> (04/08/11 16:53:44)
git-committer:
Jose Benito <jose.benito.gonzalez@…> (08/05/11 17:50:16)
Message:

[FIX] Unmark as duplicated button

  • Closes #548
  • Fixed error showing the error message
File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/webinterface/wcomponents.py

    ra224a7 rf88925  
    45334533        self._abstract=abstract 
    45344534 
    4535     def _getErrorHTML(self,msg): 
    4536         if msg.strip()=="": 
    4537             return "" 
    4538         return """ 
    4539             <tr> 
    4540                 <td align="center" colspan="2"> 
    4541                     <table align="center" valign="middle" style="padding:10px; border:1px solid #5294CC; background:#F6F6F6"> 
    4542                         <tr><td>&nbsp;</td><td>&nbsp;</td></tr> 
    4543                         <tr> 
    4544                             <td>&nbsp;</td> 
    4545                             <td><font color="red">%s</font></td> 
    4546                             <td>&nbsp;</td> 
    4547                         </tr> 
    4548                         <tr><td>&nbsp;</td><td>&nbsp;</td></tr> 
    4549                     </table> 
    4550                 </td> 
    4551             </tr> 
    4552                 """%self.htmlText(msg) 
    4553  
    45544535    def getVars(self): 
    45554536        vars=WTemplated.getVars(self) 
    45564537        vars["duplicateURL"]=quoteattr(str(vars["duplicateURL"])) 
    45574538        vars["cancelURL"]=quoteattr(str(vars["cancelURL"])) 
    4558         vars["error"]=self._getErrorHTML(vars.get("errorMsg","")) 
     4539        vars["error"] = vars.get("errorMsg","") 
    45594540        return vars 
    45604541 
Note: See TracChangeset for help on using the changeset viewer.