- Timestamp:
- 10/19/04 23:37:57 (20 years ago)
- Location:
- pykota/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/lprngpykota
r1820 r1848 24 24 # 25 25 # $Log$ 26 # Revision 1.9 2004/10/19 21:37:57 jalet 27 # Fixes recently introduced bug 28 # 26 29 # Revision 1.8 2004/10/13 20:51:27 jalet 27 30 # Made debugging levels be the same in cupspykota and lprngpykota. … … 158 161 # update the quota for the current user on this printer 159 162 self.printMoreInfo(user, printer, _("Job size : %i") % jobsize) 160 self. logdebug("Updating user %s's quota on printer %s"% (user.Name, printer.Name))163 self.printInfo(_("Updating user %s's quota on printer %s") % (user.Name, printer.Name)) 161 164 jobprice = userpquota.increasePagesUsage(jobsize) 162 165 … … 193 196 # in second pass, so all work is already done, 194 197 # now we just have to exit successfully 195 self.print MoreInfo(user, printer,_("Software accounting already done in first pass. Ignoring."))198 self.printInfo(_("Software accounting already done in first pass. Ignoring.")) 196 199 elif printer.LastJob.JobAction == "DENY" : 197 200 # Hardware accounting method was used, but job 198 201 # was rejected during first pass, so nothing to do 199 self.print MoreInfo(user, printer,_("Hardware accounting already done in first pass. Ignoring."))202 self.printInfo(_("Hardware accounting already done in first pass. Ignoring.")) 200 203 else : 201 204 # here if user and userpquota are both None -
pykota/trunk/NEWS
r1847 r1848 24 24 - 1.20alpha26 : 25 25 26 - Fix for recently introduced bug in LPRng support. 27 26 28 - Fix for incorrect locale setting when starting. 27 29 -
pykota/trunk/pykota/tool.py
r1846 r1848 22 22 # 23 23 # $Log$ 24 # Revision 1.131 2004/10/19 21:37:57 jalet 25 # Fixes recently introduced bug 26 # 24 27 # Revision 1.130 2004/10/19 15:21:48 jalet 25 28 # Fixed incorrect setting of the user's locale … … 1164 1167 def printMoreInfo(self, user, printer, message, level="info") : 1165 1168 """Prefixes the information printed with 'user@printer(jobid) =>'.""" 1166 self.printInfo("%s@%s(%s) => %s" % ( user.Name, printer.Name, self.jobid, message), level)1169 self.printInfo("%s@%s(%s) => %s" % (getattr(user, "Name", None), getattr(printer, "Name", None), self.jobid, message), level) 1167 1170 1168 1171 def extractInfoFromCupsOrLprng(self) :