Changeset 2524
- Timestamp:
- 09/29/05 13:39:17 (19 years ago)
- Location:
- pykota/trunk
- Files:
-
- 16 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pykotme
r2512 r2524 105 105 print _("Job size : %i pages") % totalsize 106 106 if user.Exists : 107 for printer in printers : 108 userpquota = self.storage.getUserPQuota(user, printer) 109 if userpquota.Exists : 110 cost = userpquota.computeJobPrice(totalsize) 111 print _("Cost on printer %s : %.2f") % (printer.Name, cost) 107 if user.LimitBy == "noprint" : 108 print _("Your account settings forbid you to print at this time.") 109 else : 110 for printer in printers : 111 userpquota = self.storage.getUserPQuota(user, printer) 112 if userpquota.Exists : 113 if printer.MaxJobSize and (totalsize > printer.MaxJobSize) : 114 print _("You are not allowed to print so many pages on printer %s at this time.") % printer.Name 115 else : 116 cost = userpquota.computeJobPrice(totalsize) 117 msg = _("Cost on printer %s : %.2f") % (printer.Name, cost) 118 if printer.PassThrough : 119 msg = "%s (%s)" % (msg, _("won't be charged, printer is in passthrough mode")) 120 elif user.LimitBy == "nochange" : 121 msg = "%s (%s)" % (msg, _("won't be charged, your account is immutable")) 122 print msg 112 123 113 124 if __name__ == "__main__" : -
pykota/trunk/cgi-bin/pykotme.cgi
r2381 r2524 167 167 user = self.storage.getUser(remuser) 168 168 if user.Exists : 169 for printer in printers : 170 upquota = self.storage.getUserPQuota(user, printer) 171 if upquota.Exists : 172 cost = upquota.computeJobPrice(jobsize) 173 self.body += "<p>%s</p>" % (_("Cost on printer %s : %.2f") % (printer.Name, cost)) 169 if user.LimitBy == "noprint" : 170 self.body += "<p>%s</p>" % _("Your account settings forbid you to print at this time.") 171 else : 172 for printer in printers : 173 upquota = self.storage.getUserPQuota(user, printer) 174 if upquota.Exists : 175 if printer.MaxJobSize and (jobsize > printer.MaxJobSize) : 176 msg = _("You are not allowed to print so many pages on printer %s at this time.") % printer.Name 177 else : 178 cost = upquota.computeJobPrice(jobsize) 179 msg = _("Cost on printer %s : %.2f") % (printer.Name, cost) 180 if printer.PassThrough : 181 msg = "%s (%s)" % (msg, _("won't be charged, printer is in passthrough mode")) 182 elif user.LimitBy == "nochange" : 183 msg = "%s (%s)" % (msg, _("won't be charged, your account is immutable")) 184 self.body += "<p>%s</p>" % msg 174 185 except : 175 186 self.body += '<p><font color="red">%s</font></p>' % self.crashed("CGI Error").replace("\n", "<br />") -
pykota/trunk/po/de/pykota.po
r2515 r2524 2031 2031 2032 2032 msgid "DENY" 2033 msgstr "" 2034 2035 msgid "won't be charged, printer is in passthrough mode" 2036 msgstr "" 2037 2038 msgid "won't be charged, your account is immutable" 2033 2039 msgstr "" 2034 2040 -
pykota/trunk/po/el_GR/pykota.po
r2515 r2524 2022 2022 msgstr "" 2023 2023 2024 msgid "won't be charged, printer is in passthrough mode" 2025 msgstr "" 2026 2027 msgid "won't be charged, your account is immutable" 2028 msgstr "" 2029 2024 2030 #~ msgid "File number %s unregistered twice from polling object, ignored." 2025 2031 #~ msgstr "" -
pykota/trunk/po/es/pykota.po
r2515 r2524 2066 2066 2067 2067 msgid "DENY" 2068 msgstr "" 2069 2070 msgid "won't be charged, printer is in passthrough mode" 2071 msgstr "" 2072 2073 msgid "won't be charged, your account is immutable" 2068 2074 msgstr "" 2069 2075 -
pykota/trunk/po/fr/pykota.po
r2515 r2524 2957 2957 msgid "DENY" 2958 2958 msgstr "Rejet� 2959 msgid "won't be charged, printer is in passthrough mode" 2960 msgstr "non d�mpt�imprimante en mode 'passthrough'" 2961 2962 msgid "won't be charged, your account is immutable" 2963 msgstr "non d�mpt�votre compte est immuable" -
pykota/trunk/po/it/pykota.po
r2515 r2524 2033 2033 msgstr "" 2034 2034 2035 msgid "won't be charged, printer is in passthrough mode" 2036 msgstr "" 2037 2038 msgid "won't be charged, your account is immutable" 2039 msgstr "" 2040 2035 2041 #~ msgid "File number %s unregistered twice from polling object, ignored." 2036 2042 #~ msgstr "Numero file %s rimosso due volte dall'oggetto polling, ignorato." -
pykota/trunk/po/nb_NO/pykota.po
r2515 r2524 2026 2026 msgstr "" 2027 2027 2028 msgid "won't be charged, printer is in passthrough mode" 2029 msgstr "" 2030 2031 msgid "won't be charged, your account is immutable" 2032 msgstr "" 2033 2028 2034 #~ msgid "Job is a duplicate. Printing is denied." 2029 2035 #~ msgstr "Utskriften er en duplikat. Utskriften blir ikke skrevet." -
pykota/trunk/po/pt_BR/pykota.po
r2515 r2524 2020 2020 msgstr "" 2021 2021 2022 msgid "won't be charged, printer is in passthrough mode" 2023 msgstr "" 2024 2025 msgid "won't be charged, your account is immutable" 2026 msgstr "" 2027 2022 2028 #~ msgid "File number %s unregistered twice from polling object, ignored." 2023 2029 #~ msgstr "" -
pykota/trunk/po/pt/pykota.po
r2515 r2524 2028 2028 msgstr "" 2029 2029 2030 msgid "won't be charged, printer is in passthrough mode" 2031 msgstr "" 2032 2033 msgid "won't be charged, your account is immutable" 2034 msgstr "" 2035 2030 2036 #~ msgid "File number %s unregistered twice from polling object, ignored." 2031 2037 #~ msgstr "" -
pykota/trunk/po/pykota.pot
r2515 r2524 1976 1976 msgstr "" 1977 1977 1978 msgid "won't be charged, printer is in passthrough mode" 1979 msgstr "" 1980 1981 msgid "won't be charged, your account is immutable" 1982 msgstr "" -
pykota/trunk/po/sv_SE/pykota.po
r2520 r2524 2039 2039 msgstr "" 2040 2040 2041 msgid "won't be charged, printer is in passthrough mode" 2042 msgstr "" 2043 2044 msgid "won't be charged, your account is immutable" 2045 msgstr "" 2046 2041 2047 #~ msgid "File number %s unregistered twice from polling object, ignored." 2042 2048 #~ msgstr "" -
pykota/trunk/po/th/pykota.po
r2515 r2524 2000 2000 msgstr "" 2001 2001 2002 msgid "won't be charged, printer is in passthrough mode" 2003 msgstr "" 2004 2005 msgid "won't be charged, your account is immutable" 2006 msgstr "" 2007 2002 2008 #~ msgid "File number %s unregistered twice from polling object, ignored." 2003 2009 #~ msgstr "������� %s ������ŧ����� 2 ��駨ҡ������� ,��� -
pykota/trunk/po/tr/pykota.po
r2515 r2524 2039 2039 msgstr "" 2040 2040 2041 msgid "won't be charged, printer is in passthrough mode" 2042 msgstr "" 2043 2044 msgid "won't be charged, your account is immutable" 2045 msgstr "" 2046 2041 2047 #~ msgid "File number %s unregistered twice from polling object, ignored." 2042 2048 #~ msgstr "%s dosya numarası yoklama nesnesinde kayıtlı değil, yok sayılıyor." -
pykota/trunk/po/zh_TW/pykota.po
r2515 r2524 1994 1994 msgstr "" 1995 1995 1996 msgid "won't be charged, printer is in passthrough mode" 1997 msgstr "" 1998 1999 msgid "won't be charged, your account is immutable" 2000 msgstr "" 2001 1996 2002 #~ msgid "File number %s unregistered twice from polling object, ignored." 1997 2003 #~ msgstr "檔案編號 %s 在polling object上已兩次未能成功註冊,因此被忽略"