Changeset 1284
- Timestamp:
- 01/12/04 22:54:36 (21 years ago)
- Location:
- pykota/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/edpykota
r1258 r1284 24 24 # 25 25 # $Log$ 26 # Revision 1.66 2004/01/12 21:54:36 jalet 27 # User's email address can now be set at user's creation time. 28 # 26 29 # Revision 1.65 2004/01/08 16:24:49 jalet 27 30 # edpykota now supports adding printers to printer groups. … … 325 328 examples : 326 329 327 $ edpykota -p jerome john paul george ringo 328 329 This will set print quotas for the users john, paul, george and ringo 330 to the same values than user jerome. User jerome must exist. 330 $ edpykota --add -p jerome john paul george ringo/ringo@yourdomain.com 331 332 This will add users john, paul, george and ringo to the quota 333 database, and set their print quotas to the same values than user 334 jerome. User jerome must already exist. 335 User ringo's email address will also be set to 'ringo@yourdomain.com' 331 336 332 337 $ edpykota --printer lp -S 50 -H 60 jerome … … 522 527 allentries = [] 523 528 for name in names : 529 email = "" 530 if not options["groups"] : 531 splitname = name.split('/', 1) # username/email 532 if len(splitname) == 1 : 533 splitname.append("") 534 (name, email) = splitname 535 if email and (email.count('@') != 1) : 536 self.logger.log_message(_("Invalid email address %s") % email) 537 email = "" 524 538 entry = getattr(self.storage, "get%s" % suffix)(name) 539 if email and not options["groups"] : 540 entry.Email = email 525 541 entrypquota = getattr(self.storage, "get%sPQuota" % suffix)(entry, printer) 526 542 allentries.append((entry, entrypquota)) -
pykota/trunk/NEWS
r1274 r1284 22 22 PyKota NEWS : 23 23 24 - 1.16alpha25 : 25 26 - Email address can be set at user creation time, 27 using the following syntax : 28 29 $ edpykota --add username/email@yourdomain.com 30 24 31 - 1.16alpha24 : 25 32 -
pykota/trunk/pykota/version.py
r1271 r1284 22 22 # 23 23 24 __version__ = "1.16alpha2 4_unofficial"24 __version__ = "1.16alpha25_unofficial" 25 25 26 26 __doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""