Show
Ignore:
Timestamp:
09/27/08 22:02:37 (16 years ago)
Author:
jerome
Message:

Removed unnecessary spaces at EOL.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/reporters/html.py

    r3411 r3413  
    88# the Free Software Foundation, either version 3 of the License, or 
    99# (at your option) any later version. 
    10 #  
     10# 
    1111# This program is distributed in the hope that it will be useful, 
    1212# but WITHOUT ANY WARRANTY; without even the implied warranty of 
    1313# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1414# GNU General Public License for more details. 
    15 #  
     15# 
    1616# You should have received a copy of the GNU General Public License 
    1717# along with this program.  If not, see <http://www.gnu.org/licenses/>. 
     
    2727 
    2828from pykota.reporter import BaseReporter 
    29      
    30 class Reporter(BaseReporter) :     
     29 
     30class Reporter(BaseReporter) : 
    3131    """HTML reporter.""" 
    3232    def generateReport(self) : 
     
    3535        if self.isgroup : 
    3636            prefix = "Group" 
    37         else :     
     37        else : 
    3838            prefix = "User" 
    3939        for printer in self.printers : 
     
    5555                if oddeven % 2 : 
    5656                    oddevenclass = "odd" 
    57                 else :     
     57                else : 
    5858                    oddevenclass = "even" 
    5959                (pages, money, name, reached, pagecounter, soft, hard, balance, datelimit, lifepagecounter, lifetimepaid, overcharge, warncount) = self.getQuota(entry, entrypquota) 
     
    6161                    if datelimit == "DENY" : 
    6262                        oddevenclass = "deny" 
    63                     else :     
     63                    else : 
    6464                        oddevenclass = "warn" 
    6565                if (not self.tool.config.getDisableHistory()) and (not self.isgroup) : 
     
    6868                total += pages 
    6969                totalmoney += money 
    70                  
    71             if total or totalmoney :         
     70 
     71            if total or totalmoney : 
    7272                (tpage, tmoney) = self.getTotals(total, totalmoney) 
    7373                self.report.append('<tr class="totals"><td colspan="8">&nbsp;</td><td align="right">%s</td><td align="right">%s</td><td>&nbsp;</td></tr>' % (tpage, tmoney)) 
    7474            self.report.append('<tr class="realpagecounter"><td colspan="8">&nbsp;</td><td align="right">%s</td><td>&nbsp;</td></tr>' % self.getPrinterRealPageCounter(printer)) 
    7575            self.report.append('</table>') 
    76         if self.isgroup :     
     76        if self.isgroup : 
    7777            self.report.append('<p class="warning">%s</p>' % _("Totals may be inaccurate if some users are members of several groups.")) 
    78         return "\n".join(self.report)     
    79                          
     78        return "\n".join(self.report) 
     79