Changeset 1757 for pykota/trunk/pykota
- Timestamp:
- 09/29/04 22:20:52 (20 years ago)
- Location:
- pykota/trunk/pykota
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/config.py
r1687 r1757 22 22 # 23 23 # $Log$ 24 # Revision 1.52 2004/09/29 20:20:52 jalet 25 # Added the winbind_separator directive to pykota.conf to allow the admin to 26 # strip out the Samba/Winbind domain name when users print. 27 # 24 28 # Revision 1.51 2004/08/31 23:29:53 jalet 25 29 # Introduction of the new 'onaccountererror' configuration directive. … … 530 534 """Returns 1 if we want to convert usernames to lowercase when printing, else 0.""" 531 535 return self.isTrue(self.getGlobalOption("utolower", ignore=1)) 536 537 def getWinbindSeparator(self) : 538 """Returns the winbind separator's value if it is set, else None.""" 539 return self.getGlobalOption("winbind_separator", ignore=1) -
pykota/trunk/pykota/tool.py
r1756 r1757 22 22 # 23 23 # $Log$ 24 # Revision 1.123 2004/09/29 20:20:52 jalet 25 # Added the winbind_separator directive to pykota.conf to allow the admin to 26 # strip out the Samba/Winbind domain name when users print. 27 # 24 28 # Revision 1.122 2004/09/28 21:38:56 jalet 25 29 # Now computes the job's datas MD5 checksum to later forbid duplicate print jobs. … … 959 963 960 964 self.username = self.username or 'root' # when printing test page from CUPS web interface, username is empty 965 966 # do we want to strip out the Samba/Winbind domain name ? 967 separator = self.config.getWinbindSeparator() 968 if separator is not None : 969 self.username = self.username.split(separator)[-1] 970 971 # do we want to lowercase usernames ? 961 972 if self.config.getUserNameToLower() : 962 973 self.username = self.username.lower() 974 963 975 self.preserveinputfile = self.inputfile 964 976 try : -
pykota/trunk/pykota/version.py
r1751 r1757 22 22 # 23 23 24 __version__ = "1.20alpha1 7_unofficial"24 __version__ = "1.20alpha18_unofficial" 25 25 26 26 __doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""