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

Removed unnecessary spaces at EOL.

Location:
pykota/trunk/pykota/reporters
Files:
3 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 
  • pykota/trunk/pykota/reporters/__init__.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/>. 
  • pykota/trunk/pykota/reporters/text.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/>. 
     
    2424 
    2525from pykota.reporter import BaseReporter 
    26      
    27 class Reporter(BaseReporter) :     
     26 
     27class Reporter(BaseReporter) : 
    2828    """Text reporter.""" 
    2929    def generateReport(self) : 
     
    3232        if self.isgroup : 
    3333            prefix = "Group" 
    34         else :     
     34        else : 
    3535            prefix = "User" 
    3636        for printer in self.printers : 
     
    4040            self.report.append(pjob) 
    4141            self.report.append(ppage) 
    42              
     42 
    4343            total = 0 
    4444            totalmoney = 0.0 
     
    5151                total += pages 
    5252                totalmoney += money 
    53                  
    54             if total or totalmoney :         
     53 
     54            if total or totalmoney : 
    5555                (tpage, tmoney) = self.getTotals(total, totalmoney) 
    5656                self.report.append((" " * 62) + tpage + tmoney) 
    5757            self.report.append((" " * 63) + self.getPrinterRealPageCounter(printer)) 
    58             self.report.append("")         
    59         if self.isgroup :     
     58            self.report.append("") 
     59        if self.isgroup : 
    6060            self.report.append(_("Totals may be inaccurate if some users are members of several groups.")) 
    61         return "\n".join(self.report)     
    62                          
     61        return "\n".join(self.report) 
     62