Changeset 2937
- Timestamp:
- 06/13/06 23:10:15 (18 years ago)
- Location:
- pykota/trunk
- Files:
-
- 34 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pkusers
r2829 r2937 54 54 55 55 -d | --delete Deletes users from the quota storage. 56 56 57 -e | --email addr Sets the email address for the users. 58 If the addr parameter begins with @, then 59 the username is prepended to addr to form 60 a valid email address. 61 57 62 -D | --description d Adds a textual description to users or groups. 58 63 … … 154 159 cost of each print job will be multiplied by zero before charging 155 160 his account. 161 162 $ pkusers --email @example.com 163 164 This will set the email address for each user to username@example.com 156 165 """) 157 166 … … 165 174 entry.setLimitBy(limitby) 166 175 if not groups : 167 if email : 168 entry.Email = email 176 if email is not None : # we allow "" to empty the field 177 if email.startswith("@") : 178 email = "%s%s" % (entry.Name, email) 179 if email and email.count('@') != 1 : 180 raise PyKotaCommandLineError, _("Invalid email address %s") % email 181 entry.setEmail(email) 169 182 if overcharge is not None : # NB : 0 is allowed ! 170 183 entry.setOverChargeFactor(overcharge) … … 279 292 description = options["description"] 280 293 if description : 281 description = options["description"].strip()294 description = description.strip() 282 295 283 296 comment = options["comment"] 284 297 if comment : 285 comment = options["comment"].strip() 298 comment = comment.strip() 299 email = options["email"] 300 if email : 301 email = email.strip() 286 302 skipexisting = options["skipexisting"] 287 303 groups = options["groups"] … … 294 310 percent.setSize(len(names)) 295 311 for ename in names : 296 email = None312 useremail = None 297 313 if not groups : 298 314 splitname = ename.split('/', 1) # username/email 299 315 if len(splitname) == 1 : 300 316 splitname.append("") 301 (ename, email) = splitname 302 if email and (email.count('@') != 1) : 303 raise PyKotaCommandLineError, _("Invalid email address %s") % email 317 (ename, useremail) = splitname 304 318 if self.isValidName(ename) : 305 319 reject = 0 … … 326 340 description, overcharge,\ 327 341 balance, balancevalue, \ 328 comment, email)342 comment, useremail or email) 329 343 oldentry = getattr(self.storage, "add%s" % suffix)(entry) 330 344 if oldentry is not None : … … 340 354 description, overcharge,\ 341 355 balance, balancevalue, \ 342 comment, email)356 comment, useremail or email) 343 357 oldentry.save() 344 358 if not groups : … … 359 373 self.modifyEntry(entry, groups, limitby, description, \ 360 374 overcharge, balance, balancevalue, \ 361 comment )375 comment, email) 362 376 self.manageUsersGroups(usersgroups, entry, remove) 363 377 entry.save() … … 378 392 "comment" : "", \ 379 393 } 380 short_options = "hvaD:dgl:rso:i:b:C:L "394 short_options = "hvaD:dgl:rso:i:b:C:Le:" 381 395 long_options = ["help", "version", "add", "description=", \ 382 396 "delete", "groups", "list", "remove", \ 383 "skipexisting", "overcharge=", \397 "skipexisting", "overcharge=", "email=", \ 384 398 "ingroups=", "limitby=", "balance=", "comment=", \ 385 399 ] … … 408 422 options["overcharge"] = options["o"] or options["overcharge"] 409 423 options["comment"] = options["C"] or options["comment"] or defaults["comment"] 424 options["email"] = options["e"] or options["email"] 410 425 411 426 if options["help"] : … … 413 428 elif options["version"] : 414 429 manager.display_version_and_quit() 415 elif (options["delete"] and (options["add"] or options["remove"] or options["description"] )) \430 elif (options["delete"] and (options["add"] or options["remove"] or options["description"] or options["email"])) \ 416 431 or (options["skipexisting"] and not options["add"]) \ 417 or (options["list"] and (options["add"] or options["delete"] or options["remove"] or options["description"] )) \432 or (options["list"] and (options["add"] or options["delete"] or options["remove"] or options["description"] or options["email"])) \ 418 433 or (options["groups"] and (options["balance"] or options["ingroups"] or options["overcharge"])) : 419 434 raise PyKotaCommandLineError, _("incompatible options, see help.") -
pykota/trunk/man/de/pkusers.1
r2910 r2937 2 2 .TH PKUSERS "1" "juin 2006" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NOM 4 pkusers \- page de manuel de pkusers 1.25alpha 5_unofficial4 pkusers \- page de manuel de pkusers 1.25alpha7_unofficial 5 5 .SH DESCRIPTION 6 pkusers v1.25alpha 5_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com6 pkusers v1.25alpha7_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com 7 7 .PP 8 8 An Users and Groups Manager for PyKota. … … 31 31 \fB\-d\fR | \fB\-\-delete\fR 32 32 Deletes users from the quota storage. 33 .TP 34 \fB\-e\fR | \fB\-\-email\fR addr 35 Sets the email address for the users. 36 If the addr parameter begins with @, then 37 the username is prepended to addr to form 38 a valid email address. 33 39 .HP 34 40 \fB\-D\fR | \fB\-\-description\fR d Adds a textual description to users or groups. … … 140 146 cost of each print job will be multiplied by zero before charging 141 147 his account. 148 .IP 149 \f(CW$ pkusers --email @example.com\fR 150 .IP 151 This will set the email address for each user to username@example.com 142 152 .PP 143 153 This program is free software; you can redistribute it and/or modify -
pykota/trunk/man/el_GR/pkusers.1
r2910 r2937 2 2 .TH PKUSERS "1" "juin 2006" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NOM 4 pkusers \- page de manuel de pkusers 1.25alpha 5_unofficial4 pkusers \- page de manuel de pkusers 1.25alpha7_unofficial 5 5 .SH DESCRIPTION 6 pkusers v1.25alpha 5_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com6 pkusers v1.25alpha7_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com 7 7 .PP 8 8 An Users and Groups Manager for PyKota. … … 31 31 \fB\-d\fR | \fB\-\-delete\fR 32 32 Deletes users from the quota storage. 33 .TP 34 \fB\-e\fR | \fB\-\-email\fR addr 35 Sets the email address for the users. 36 If the addr parameter begins with @, then 37 the username is prepended to addr to form 38 a valid email address. 33 39 .HP 34 40 \fB\-D\fR | \fB\-\-description\fR d Adds a textual description to users or groups. … … 140 146 cost of each print job will be multiplied by zero before charging 141 147 his account. 148 .IP 149 \f(CW$ pkusers --email @example.com\fR 150 .IP 151 This will set the email address for each user to username@example.com 142 152 .PP 143 153 This program is free software; you can redistribute it and/or modify -
pykota/trunk/man/es/pkusers.1
r2910 r2937 2 2 .TH PKUSERS "1" "juin 2006" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NOM 4 pkusers \- page de manuel de pkusers 1.25alpha 5_unofficial4 pkusers \- page de manuel de pkusers 1.25alpha7_unofficial 5 5 .SH DESCRIPTION 6 pkusers v1.25alpha 5_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com6 pkusers v1.25alpha7_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com 7 7 .PP 8 8 An Users and Groups Manager for PyKota. … … 31 31 \fB\-d\fR | \fB\-\-delete\fR 32 32 Deletes users from the quota storage. 33 .TP 34 \fB\-e\fR | \fB\-\-email\fR addr 35 Sets the email address for the users. 36 If the addr parameter begins with @, then 37 the username is prepended to addr to form 38 a valid email address. 33 39 .HP 34 40 \fB\-D\fR | \fB\-\-description\fR d Adds a textual description to users or groups. … … 140 146 cost of each print job will be multiplied by zero before charging 141 147 his account. 148 .IP 149 \f(CW$ pkusers --email @example.com\fR 150 .IP 151 This will set the email address for each user to username@example.com 142 152 .PP 143 153 This program is free software; you can redistribute it and/or modify -
pykota/trunk/man/fr/pkusers.1
r2910 r2937 2 2 .TH PKUSERS "1" "juin 2006" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NOM 4 pkusers \- page de manuel de pkusers 1.25alpha 5_unofficial4 pkusers \- page de manuel de pkusers 1.25alpha7_unofficial 5 5 .SH DESCRIPTION 6 pkusers v1.25alpha 5_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com6 pkusers v1.25alpha7_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com 7 7 .PP 8 8 Un gestionnaire d'utilisateurs et de groupes pour PyKota. … … 30 30 \fB\-d\fR | \fB\-\-delete\fR 31 31 Efface des utilisateurs de la base de donn�. 32 .TP 33 \fB\-e\fR | \fB\-\-email\fR adr 34 Positionne l'adresse email des utilisateurs. 35 Si le param�e adr commence par @, alors 36 cette valeur est pr�x�par le nom d'utilisateur 37 pour former une adresse email valide. 32 38 .HP 33 39 \fB\-D\fR | \fB\-\-description\fR d Ajoute une description textuelle aux utilisateurs. … … 136 142 car le co� chaque job sera multipli�ar 0 avant de modifier le solde 137 143 de son compte. 144 .IP 145 \f(CW$ pkusers --email @example.com\fR 146 .IP 147 Ceci va fixer l'adresse email de chaque utilisateur �om@example.com 138 148 .PP 139 149 This program is free software; you can redistribute it and/or modify -
pykota/trunk/man/it/pkusers.1
r2910 r2937 2 2 .TH PKUSERS "1" "juin 2006" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NOM 4 pkusers \- page de manuel de pkusers 1.25alpha 5_unofficial4 pkusers \- page de manuel de pkusers 1.25alpha7_unofficial 5 5 .SH DESCRIPTION 6 pkusers v1.25alpha 5_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com6 pkusers v1.25alpha7_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com 7 7 .PP 8 8 An Users and Groups Manager for PyKota. … … 31 31 \fB\-d\fR | \fB\-\-delete\fR 32 32 Deletes users from the quota storage. 33 .TP 34 \fB\-e\fR | \fB\-\-email\fR addr 35 Sets the email address for the users. 36 If the addr parameter begins with @, then 37 the username is prepended to addr to form 38 a valid email address. 33 39 .HP 34 40 \fB\-D\fR | \fB\-\-description\fR d Adds a textual description to users or groups. … … 140 146 cost of each print job will be multiplied by zero before charging 141 147 his account. 148 .IP 149 \f(CW$ pkusers --email @example.com\fR 150 .IP 151 This will set the email address for each user to username@example.com 142 152 .PP 143 153 This program is free software; you can redistribute it and/or modify -
pykota/trunk/man/nb_NO/pkusers.1
r2910 r2937 2 2 .TH PKUSERS "1" "juin 2006" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NOM 4 pkusers \- page de manuel de pkusers 1.25alpha 5_unofficial4 pkusers \- page de manuel de pkusers 1.25alpha7_unofficial 5 5 .SH DESCRIPTION 6 pkusers v1.25alpha 5_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com6 pkusers v1.25alpha7_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com 7 7 .PP 8 8 An Users and Groups Manager for PyKota. … … 31 31 \fB\-d\fR | \fB\-\-delete\fR 32 32 Deletes users from the quota storage. 33 .TP 34 \fB\-e\fR | \fB\-\-email\fR addr 35 Sets the email address for the users. 36 If the addr parameter begins with @, then 37 the username is prepended to addr to form 38 a valid email address. 33 39 .HP 34 40 \fB\-D\fR | \fB\-\-description\fR d Adds a textual description to users or groups. … … 140 146 cost of each print job will be multiplied by zero before charging 141 147 his account. 148 .IP 149 \f(CW$ pkusers --email @example.com\fR 150 .IP 151 This will set the email address for each user to username@example.com 142 152 .PP 143 153 This program is free software; you can redistribute it and/or modify -
pykota/trunk/man/pkusers.1
r2910 r2937 2 2 .TH PKUSERS "1" "June 2006" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NAME 4 pkusers \- manual page for pkusers 1.25alpha 5_unofficial4 pkusers \- manual page for pkusers 1.25alpha7_unofficial 5 5 .SH DESCRIPTION 6 pkusers v1.25alpha 5_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com6 pkusers v1.25alpha7_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com 7 7 .PP 8 8 An Users and Groups Manager for PyKota. … … 31 31 \fB\-d\fR | \fB\-\-delete\fR 32 32 Deletes users from the quota storage. 33 .TP 34 \fB\-e\fR | \fB\-\-email\fR addr 35 Sets the email address for the users. 36 If the addr parameter begins with @, then 37 the username is prepended to addr to form 38 a valid email address. 33 39 .HP 34 40 \fB\-D\fR | \fB\-\-description\fR d Adds a textual description to users or groups. … … 140 146 cost of each print job will be multiplied by zero before charging 141 147 his account. 148 .IP 149 \f(CW$ pkusers --email @example.com\fR 150 .IP 151 This will set the email address for each user to username@example.com 142 152 .PP 143 153 This program is free software; you can redistribute it and/or modify -
pykota/trunk/man/pl/pkusers.1
r2910 r2937 2 2 .TH PKUSERS "1" "juin 2006" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NOM 4 pkusers \- page de manuel de pkusers 1.25alpha 5_unofficial4 pkusers \- page de manuel de pkusers 1.25alpha7_unofficial 5 5 .SH DESCRIPTION 6 pkusers v1.25alpha 5_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com6 pkusers v1.25alpha7_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com 7 7 .PP 8 8 An Users and Groups Manager for PyKota. … … 31 31 \fB\-d\fR | \fB\-\-delete\fR 32 32 Deletes users from the quota storage. 33 .TP 34 \fB\-e\fR | \fB\-\-email\fR addr 35 Sets the email address for the users. 36 If the addr parameter begins with @, then 37 the username is prepended to addr to form 38 a valid email address. 33 39 .HP 34 40 \fB\-D\fR | \fB\-\-description\fR d Adds a textual description to users or groups. … … 140 146 cost of each print job will be multiplied by zero before charging 141 147 his account. 148 .IP 149 \f(CW$ pkusers --email @example.com\fR 150 .IP 151 This will set the email address for each user to username@example.com 142 152 .PP 143 153 This program is free software; you can redistribute it and/or modify -
pykota/trunk/man/pt_BR/pkusers.1
r2910 r2937 2 2 .TH PKUSERS "1" "juin 2006" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NOM 4 pkusers \- page de manuel de pkusers 1.25alpha 5_unofficial4 pkusers \- page de manuel de pkusers 1.25alpha7_unofficial 5 5 .SH DESCRIPTION 6 pkusers v1.25alpha 5_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com6 pkusers v1.25alpha7_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com 7 7 .PP 8 8 An Users and Groups Manager for PyKota. … … 31 31 \fB\-d\fR | \fB\-\-delete\fR 32 32 Deletes users from the quota storage. 33 .TP 34 \fB\-e\fR | \fB\-\-email\fR addr 35 Sets the email address for the users. 36 If the addr parameter begins with @, then 37 the username is prepended to addr to form 38 a valid email address. 33 39 .HP 34 40 \fB\-D\fR | \fB\-\-description\fR d Adds a textual description to users or groups. … … 140 146 cost of each print job will be multiplied by zero before charging 141 147 his account. 148 .IP 149 \f(CW$ pkusers --email @example.com\fR 150 .IP 151 This will set the email address for each user to username@example.com 142 152 .PP 143 153 This program is free software; you can redistribute it and/or modify -
pykota/trunk/man/pt/pkusers.1
r2910 r2937 2 2 .TH PKUSERS "1" "juin 2006" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NOM 4 pkusers \- page de manuel de pkusers 1.25alpha 5_unofficial4 pkusers \- page de manuel de pkusers 1.25alpha7_unofficial 5 5 .SH DESCRIPTION 6 pkusers v1.25alpha 5_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com6 pkusers v1.25alpha7_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com 7 7 .PP 8 8 An Users and Groups Manager for PyKota. … … 31 31 \fB\-d\fR | \fB\-\-delete\fR 32 32 Deletes users from the quota storage. 33 .TP 34 \fB\-e\fR | \fB\-\-email\fR addr 35 Sets the email address for the users. 36 If the addr parameter begins with @, then 37 the username is prepended to addr to form 38 a valid email address. 33 39 .HP 34 40 \fB\-D\fR | \fB\-\-description\fR d Adds a textual description to users or groups. … … 140 146 cost of each print job will be multiplied by zero before charging 141 147 his account. 148 .IP 149 \f(CW$ pkusers --email @example.com\fR 150 .IP 151 This will set the email address for each user to username@example.com 142 152 .PP 143 153 This program is free software; you can redistribute it and/or modify -
pykota/trunk/man/sv_SE/pkusers.1
r2910 r2937 2 2 .TH PKUSERS "1" "juin 2006" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NOM 4 pkusers \- page de manuel de pkusers 1.25alpha 5_unofficial4 pkusers \- page de manuel de pkusers 1.25alpha7_unofficial 5 5 .SH DESCRIPTION 6 pkusers v1.25alpha 5_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com6 pkusers v1.25alpha7_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com 7 7 .PP 8 8 An Users and Groups Manager for PyKota. … … 31 31 \fB\-d\fR | \fB\-\-delete\fR 32 32 Deletes users from the quota storage. 33 .TP 34 \fB\-e\fR | \fB\-\-email\fR addr 35 Sets the email address for the users. 36 If the addr parameter begins with @, then 37 the username is prepended to addr to form 38 a valid email address. 33 39 .HP 34 40 \fB\-D\fR | \fB\-\-description\fR d Adds a textual description to users or groups. … … 140 146 cost of each print job will be multiplied by zero before charging 141 147 his account. 148 .IP 149 \f(CW$ pkusers --email @example.com\fR 150 .IP 151 This will set the email address for each user to username@example.com 142 152 .PP 143 153 This program is free software; you can redistribute it and/or modify -
pykota/trunk/man/th/pkusers.1
r2910 r2937 2 2 .TH PKUSERS "1" "juin 2006" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NOM 4 pkusers \- page de manuel de pkusers 1.25alpha 5_unofficial4 pkusers \- page de manuel de pkusers 1.25alpha7_unofficial 5 5 .SH DESCRIPTION 6 pkusers v1.25alpha 5_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com6 pkusers v1.25alpha7_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com 7 7 .PP 8 8 An Users and Groups Manager for PyKota. … … 31 31 \fB\-d\fR | \fB\-\-delete\fR 32 32 Deletes users from the quota storage. 33 .TP 34 \fB\-e\fR | \fB\-\-email\fR addr 35 Sets the email address for the users. 36 If the addr parameter begins with @, then 37 the username is prepended to addr to form 38 a valid email address. 33 39 .HP 34 40 \fB\-D\fR | \fB\-\-description\fR d Adds a textual description to users or groups. … … 140 146 cost of each print job will be multiplied by zero before charging 141 147 his account. 148 .IP 149 \f(CW$ pkusers --email @example.com\fR 150 .IP 151 This will set the email address for each user to username@example.com 142 152 .PP 143 153 This program is free software; you can redistribute it and/or modify -
pykota/trunk/man/tr/pkusers.1
r2910 r2937 2 2 .TH PKUSERS "1" "juin 2006" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NOM 4 pkusers \- page de manuel de pkusers 1.25alpha 5_unofficial4 pkusers \- page de manuel de pkusers 1.25alpha7_unofficial 5 5 .SH DESCRIPTION 6 pkusers v1.25alpha 5_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com6 pkusers v1.25alpha7_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com 7 7 .PP 8 8 An Users and Groups Manager for PyKota. … … 31 31 \fB\-d\fR | \fB\-\-delete\fR 32 32 Deletes users from the quota storage. 33 .TP 34 \fB\-e\fR | \fB\-\-email\fR addr 35 Sets the email address for the users. 36 If the addr parameter begins with @, then 37 the username is prepended to addr to form 38 a valid email address. 33 39 .HP 34 40 \fB\-D\fR | \fB\-\-description\fR d Adds a textual description to users or groups. … … 140 146 cost of each print job will be multiplied by zero before charging 141 147 his account. 148 .IP 149 \f(CW$ pkusers --email @example.com\fR 150 .IP 151 This will set the email address for each user to username@example.com 142 152 .PP 143 153 This program is free software; you can redistribute it and/or modify -
pykota/trunk/man/zh_TW/pkusers.1
r2910 r2937 2 2 .TH PKUSERS "1" "juin 2006" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NOM 4 pkusers \- page de manuel de pkusers 1.25alpha 5_unofficial4 pkusers \- page de manuel de pkusers 1.25alpha7_unofficial 5 5 .SH DESCRIPTION 6 pkusers v1.25alpha 5_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com6 pkusers v1.25alpha7_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com 7 7 .PP 8 8 An Users and Groups Manager for PyKota. … … 31 31 \fB\-d\fR | \fB\-\-delete\fR 32 32 Deletes users from the quota storage. 33 .TP 34 \fB\-e\fR | \fB\-\-email\fR addr 35 Sets the email address for the users. 36 If the addr parameter begins with @, then 37 the username is prepended to addr to form 38 a valid email address. 33 39 .HP 34 40 \fB\-D\fR | \fB\-\-description\fR d Adds a textual description to users or groups. … … 140 146 cost of each print job will be multiplied by zero before charging 141 147 his account. 148 .IP 149 \f(CW$ pkusers --email @example.com\fR 150 .IP 151 This will set the email address for each user to username@example.com 142 152 .PP 143 153 This program is free software; you can redistribute it and/or modify -
pykota/trunk/NEWS
r2929 r2937 22 22 PyKota NEWS : 23 23 24 - 1.25alpha6 (2006-06-13) : 25 26 - pkusers now supports the --email command line switch. 27 The old method to set the email address is still supported, 28 but the new one allows the email address to be modified 29 as well. 30 24 31 - 1.25alpha6 (2006-06-09) : 25 32 -
pykota/trunk/po/de/pykota.po
r2909 r2937 1209 1209 " \n" 1210 1210 " -d | --delete Deletes users from the quota storage.\n" 1211 " \n" 1211 "\n" 1212 " -e | --email addr Sets the email address for the users.\n" 1213 " If the addr parameter begins with @, then\n" 1214 " the username is prepended to addr to form\n" 1215 " a valid email address.\n" 1216 "\n" 1212 1217 " -D | --description d Adds a textual description to users or groups.\n" 1213 1218 " \n" … … 1313 1318 " cost of each print job will be multiplied by zero before charging\n" 1314 1319 " his account.\n" 1320 "\n" 1321 " $ pkusers --email @example.com\n" 1322 "\n" 1323 " This will set the email address for each user to username@example.com\n" 1315 1324 msgstr "" 1316 1325 -
pykota/trunk/po/el_GR/pykota.po
r2909 r2937 1210 1210 " \n" 1211 1211 " -d | --delete Deletes users from the quota storage.\n" 1212 " \n" 1212 "\n" 1213 " -e | --email addr Sets the email address for the users.\n" 1214 " If the addr parameter begins with @, then\n" 1215 " the username is prepended to addr to form\n" 1216 " a valid email address.\n" 1217 "\n" 1213 1218 " -D | --description d Adds a textual description to users or groups.\n" 1214 1219 " \n" … … 1314 1319 " cost of each print job will be multiplied by zero before charging\n" 1315 1320 " his account.\n" 1321 "\n" 1322 " $ pkusers --email @example.com\n" 1323 "\n" 1324 " This will set the email address for each user to username@example.com\n" 1316 1325 msgstr "" 1317 1326 -
pykota/trunk/po/es/pykota.po
r2909 r2937 1226 1226 " \n" 1227 1227 " -d | --delete Deletes users from the quota storage.\n" 1228 " \n" 1228 "\n" 1229 " -e | --email addr Sets the email address for the users.\n" 1230 " If the addr parameter begins with @, then\n" 1231 " the username is prepended to addr to form\n" 1232 " a valid email address.\n" 1233 "\n" 1229 1234 " -D | --description d Adds a textual description to users or groups.\n" 1230 1235 " \n" … … 1330 1335 " cost of each print job will be multiplied by zero before charging\n" 1331 1336 " his account.\n" 1337 "\n" 1338 " $ pkusers --email @example.com\n" 1339 "\n" 1340 " This will set the email address for each user to username@example.com\n" 1332 1341 msgstr "" 1333 1342 -
pykota/trunk/po/fr/pykota.po
r2909 r2937 1861 1861 " \n" 1862 1862 " -d | --delete Deletes users from the quota storage.\n" 1863 " \n" 1863 "\n" 1864 " -e | --email addr Sets the email address for the users.\n" 1865 " If the addr parameter begins with @, then\n" 1866 " the username is prepended to addr to form\n" 1867 " a valid email address.\n" 1868 "\n" 1864 1869 " -D | --description d Adds a textual description to users or groups.\n" 1865 1870 " \n" … … 1965 1970 " cost of each print job will be multiplied by zero before charging\n" 1966 1971 " his account.\n" 1972 "\n" 1973 " $ pkusers --email @example.com\n" 1974 "\n" 1975 " This will set the email address for each user to username@example.com\n" 1967 1976 msgstr "" 1968 1977 "pkusers v%(__version__)s (c) %(__years__)s %(__author__)s\n" … … 1989 1998 "\n" 1990 1999 " -d | --delete Efface des utilisateurs de la base de donn�.\n" 2000 "\n" 2001 " -e | --email adr Positionne l'adresse email des utilisateurs.\n" 2002 " Si le param�e adr commence par @, alors\n" 2003 " cette valeur est pr�x�par le nom d'utilisateur\n" 2004 " pour former une adresse email valide.\n" 1991 2005 "\n" 1992 2006 " -D | --description d Ajoute une description textuelle aux utilisateurs.\n" … … 2102 2116 " car le co� chaque job sera multipli�ar 0 avant de modifier le solde\n" 2103 2117 " de son compte.\n" 2118 "\n" 2119 " $ pkusers --email @example.com\n" 2120 "\n" 2121 " Ceci va fixer l'adresse email de chaque utilisateur �om@example.com\n" 2104 2122 2105 2123 #, python-format -
pykota/trunk/po/it/pykota.po
r2909 r2937 1212 1212 " \n" 1213 1213 " -d | --delete Deletes users from the quota storage.\n" 1214 " \n" 1214 "\n" 1215 " -e | --email addr Sets the email address for the users.\n" 1216 " If the addr parameter begins with @, then\n" 1217 " the username is prepended to addr to form\n" 1218 " a valid email address.\n" 1219 "\n" 1215 1220 " -D | --description d Adds a textual description to users or groups.\n" 1216 1221 " \n" … … 1316 1321 " cost of each print job will be multiplied by zero before charging\n" 1317 1322 " his account.\n" 1323 "\n" 1324 " $ pkusers --email @example.com\n" 1325 "\n" 1326 " This will set the email address for each user to username@example.com\n" 1318 1327 msgstr "" 1319 1328 -
pykota/trunk/po/nb_NO/pykota.po
r2909 r2937 1219 1219 " \n" 1220 1220 " -d | --delete Deletes users from the quota storage.\n" 1221 " \n" 1221 "\n" 1222 " -e | --email addr Sets the email address for the users.\n" 1223 " If the addr parameter begins with @, then\n" 1224 " the username is prepended to addr to form\n" 1225 " a valid email address.\n" 1226 "\n" 1222 1227 " -D | --description d Adds a textual description to users or groups.\n" 1223 1228 " \n" … … 1323 1328 " cost of each print job will be multiplied by zero before charging\n" 1324 1329 " his account.\n" 1330 "\n" 1331 " $ pkusers --email @example.com\n" 1332 "\n" 1333 " This will set the email address for each user to username@example.com\n" 1325 1334 msgstr "" 1326 1335 -
pykota/trunk/po/pl/pykota.po
r2909 r2937 1616 1616 " \n" 1617 1617 " -d | --delete Deletes users from the quota storage.\n" 1618 " \n" 1618 "\n" 1619 " -e | --email addr Sets the email address for the users.\n" 1620 " If the addr parameter begins with @, then\n" 1621 " the username is prepended to addr to form\n" 1622 " a valid email address.\n" 1623 "\n" 1619 1624 " -D | --description d Adds a textual description to users or groups.\n" 1620 1625 " \n" … … 1720 1725 " cost of each print job will be multiplied by zero before charging\n" 1721 1726 " his account.\n" 1727 "\n" 1728 " $ pkusers --email @example.com\n" 1729 "\n" 1730 " This will set the email address for each user to username@example.com\n" 1722 1731 msgstr "" 1723 1732 -
pykota/trunk/po/pt_BR/pykota.po
r2909 r2937 1207 1207 " \n" 1208 1208 " -d | --delete Deletes users from the quota storage.\n" 1209 " \n" 1209 "\n" 1210 " -e | --email addr Sets the email address for the users.\n" 1211 " If the addr parameter begins with @, then\n" 1212 " the username is prepended to addr to form\n" 1213 " a valid email address.\n" 1214 "\n" 1210 1215 " -D | --description d Adds a textual description to users or groups.\n" 1211 1216 " \n" … … 1311 1316 " cost of each print job will be multiplied by zero before charging\n" 1312 1317 " his account.\n" 1318 "\n" 1319 " $ pkusers --email @example.com\n" 1320 "\n" 1321 " This will set the email address for each user to username@example.com\n" 1313 1322 msgstr "" 1314 1323 -
pykota/trunk/po/pt/pykota.po
r2909 r2937 1210 1210 " \n" 1211 1211 " -d | --delete Deletes users from the quota storage.\n" 1212 " \n" 1212 "\n" 1213 " -e | --email addr Sets the email address for the users.\n" 1214 " If the addr parameter begins with @, then\n" 1215 " the username is prepended to addr to form\n" 1216 " a valid email address.\n" 1217 "\n" 1213 1218 " -D | --description d Adds a textual description to users or groups.\n" 1214 1219 " \n" … … 1314 1319 " cost of each print job will be multiplied by zero before charging\n" 1315 1320 " his account.\n" 1321 "\n" 1322 " $ pkusers --email @example.com\n" 1323 "\n" 1324 " This will set the email address for each user to username@example.com\n" 1316 1325 msgstr "" 1317 1326 -
pykota/trunk/po/pykota.pot
r2909 r2937 1189 1189 " \n" 1190 1190 " -d | --delete Deletes users from the quota storage.\n" 1191 " \n" 1191 "\n" 1192 " -e | --email addr Sets the email address for the users.\n" 1193 " If the addr parameter begins with @, then\n" 1194 " the username is prepended to addr to form\n" 1195 " a valid email address.\n" 1196 "\n" 1192 1197 " -D | --description d Adds a textual description to users or groups.\n" 1193 1198 " \n" … … 1293 1298 " cost of each print job will be multiplied by zero before charging\n" 1294 1299 " his account.\n" 1300 "\n" 1301 " $ pkusers --email @example.com\n" 1302 "\n" 1303 " This will set the email address for each user to username@example.com\n" 1295 1304 msgstr "" 1296 1305 -
pykota/trunk/po/sv_SE/pykota.po
r2909 r2937 1225 1225 " \n" 1226 1226 " -d | --delete Deletes users from the quota storage.\n" 1227 " \n" 1227 "\n" 1228 " -e | --email addr Sets the email address for the users.\n" 1229 " If the addr parameter begins with @, then\n" 1230 " the username is prepended to addr to form\n" 1231 " a valid email address.\n" 1232 "\n" 1228 1233 " -D | --description d Adds a textual description to users or groups.\n" 1229 1234 " \n" … … 1329 1334 " cost of each print job will be multiplied by zero before charging\n" 1330 1335 " his account.\n" 1336 "\n" 1337 " $ pkusers --email @example.com\n" 1338 "\n" 1339 " This will set the email address for each user to username@example.com\n" 1331 1340 msgstr "" 1332 1341 -
pykota/trunk/po/th/pykota.po
r2909 r2937 1203 1203 " \n" 1204 1204 " -d | --delete Deletes users from the quota storage.\n" 1205 " \n" 1205 "\n" 1206 " -e | --email addr Sets the email address for the users.\n" 1207 " If the addr parameter begins with @, then\n" 1208 " the username is prepended to addr to form\n" 1209 " a valid email address.\n" 1210 "\n" 1206 1211 " -D | --description d Adds a textual description to users or groups.\n" 1207 1212 " \n" … … 1307 1312 " cost of each print job will be multiplied by zero before charging\n" 1308 1313 " his account.\n" 1314 "\n" 1315 " $ pkusers --email @example.com\n" 1316 "\n" 1317 " This will set the email address for each user to username@example.com\n" 1309 1318 msgstr "" 1310 1319 -
pykota/trunk/po/tr/pykota.po
r2909 r2937 1215 1215 " \n" 1216 1216 " -d | --delete Deletes users from the quota storage.\n" 1217 " \n" 1217 "\n" 1218 " -e | --email addr Sets the email address for the users.\n" 1219 " If the addr parameter begins with @, then\n" 1220 " the username is prepended to addr to form\n" 1221 " a valid email address.\n" 1222 "\n" 1218 1223 " -D | --description d Adds a textual description to users or groups.\n" 1219 1224 " \n" … … 1319 1324 " cost of each print job will be multiplied by zero before charging\n" 1320 1325 " his account.\n" 1326 "\n" 1327 " $ pkusers --email @example.com\n" 1328 "\n" 1329 " This will set the email address for each user to username@example.com\n" 1321 1330 msgstr "" 1322 1331 -
pykota/trunk/po/zh_TW/pykota.po
r2909 r2937 1195 1195 " \n" 1196 1196 " -d | --delete Deletes users from the quota storage.\n" 1197 " \n" 1197 "\n" 1198 " -e | --email addr Sets the email address for the users.\n" 1199 " If the addr parameter begins with @, then\n" 1200 " the username is prepended to addr to form\n" 1201 " a valid email address.\n" 1202 "\n" 1198 1203 " -D | --description d Adds a textual description to users or groups.\n" 1199 1204 " \n" … … 1299 1304 " cost of each print job will be multiplied by zero before charging\n" 1300 1305 " his account.\n" 1306 "\n" 1307 " $ pkusers --email @example.com\n" 1308 "\n" 1309 " This will set the email address for each user to username@example.com\n" 1301 1310 msgstr "" 1302 1311 -
pykota/trunk/pykota/storage.py
r2880 r2937 104 104 """Sets the user's overcharging coefficient.""" 105 105 self.OverCharge = factor 106 self.isDirty = True 107 108 def setEmail(self, email) : 109 """Sets the user's email address.""" 110 self.Email = email 106 111 self.isDirty = True 107 112 -
pykota/trunk/pykota/version.py
r2919 r2937 22 22 # 23 23 24 __version__ = "1.25alpha 6_unofficial"24 __version__ = "1.25alpha7_unofficial" 25 25 26 26 __doc__ = "PyKota : a complete Printing Quota Solution for CUPS." -
pykota/trunk/TODO
r2917 r2937 22 22 TODO, in no particular order : 23 23 24 - Add a --email command line option to pkusers, to allow25 modification of an existing email address.26 27 24 - Add a pkrefund command line tool & optional CGI script. 28 25