Changeset 915 for pykota/trunk/bin
- Timestamp:
- 04/15/03 13:30:57 (22 years ago)
- Location:
- pykota/trunk/bin
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pykota
r914 r915 23 23 # 24 24 # $Log$ 25 # Revision 1.23 2003/04/15 11:30:57 jalet 26 # More work done on money print charging. 27 # Minor bugs corrected. 28 # All tools now access to the storage as priviledged users, repykota excepted. 29 # 25 30 # Revision 1.22 2003/04/15 11:09:04 jalet 26 31 # Small bug was fixed when a printer was never used and its internal … … 111 116 """Class for the PyKota filter.""" 112 117 def __init__(self, username) : 113 PyKotaTool.__init__(self , isfilter=1)118 PyKotaTool.__init__(self) 114 119 self.username = username 115 120 self.requester = openRequester(self.config, self.printername) -
pykota/trunk/bin/repykota
r912 r915 23 23 # 24 24 # $Log$ 25 # Revision 1.25 2003/04/15 11:30:57 jalet 26 # More work done on money print charging. 27 # Minor bugs corrected. 28 # All tools now access to the storage as priviledged users, repykota excepted. 29 # 25 30 # Revision 1.24 2003/04/14 20:05:20 jalet 26 31 # Reversed test. … … 156 161 class RePyKota(PyKotaTool) : 157 162 """A class for repykota.""" 163 def __init__(self, doc) : 164 """Initializes the tool as a non-priviledged storage user.""" 165 PyKotaTool.__init__(self, asadmin=0, doc=doc) 166 158 167 def main(self, options) : 159 168 """Print Quota reports generator.""" … … 181 190 print (" " * 43) + (_("Total : %9i") % total) 182 191 printerpagecounter = self.storage.getPrinterPageCounter(printerid) 183 if printerpagecounter is None : 192 try : 193 msg = "%9i" % printerpagecounter["pagecounter"] 194 except TypeError : 184 195 msg = _("unknown") 185 else :186 msg = "%9i" % printerpagecounter["pagecounter"]187 196 print (" " * 44) + (_("Real : %s") % msg) 188 197 print