Index: pykota/trunk/pykota/storages/ldapstorage.py
===================================================================
--- pykota/trunk/pykota/storages/ldapstorage.py (revision 2146)
+++ pykota/trunk/pykota/storages/ldapstorage.py (revision 2147)
@@ -20,354 +20,4 @@
 #
 # $Id$
-#
-# $Log$
-# Revision 1.103  2005/02/25 14:47:27  jalet
-# Improved robustness for manually modified LDAP trees
-#
-# Revision 1.102  2005/02/25 14:31:07  jalet
-# Improved robustness
-#
-# Revision 1.101  2005/02/13 22:48:37  jalet
-# Added the md5sum to the history
-#
-# Revision 1.100  2005/02/13 22:02:29  jalet
-# Big database structure changes. Upgrade script is now included as well as
-# the new LDAP schema.
-# Introduction of the -o | --overcharge command line option to edpykota.
-# The output of repykota is more complete, but doesn't fit in 80 columns anymore.
-# Introduction of the new 'maxdenybanners' directive.
-#
-# Revision 1.99  2005/01/24 17:44:17  jalet
-# Same fix for group print quota entries wrt LDAP performance
-#
-# Revision 1.98  2005/01/24 17:35:24  jalet
-# Performance improvement for user print quota entries search
-#
-# Revision 1.97  2005/01/24 17:27:35  jalet
-# typo
-#
-# Revision 1.96  2005/01/24 15:38:51  jalet
-# Fixed some ldap filters
-#
-# Revision 1.95  2005/01/18 19:47:50  jalet
-# Big bug fix wrt the datelimit attribute
-#
-# Revision 1.94  2005/01/01 18:53:27  jalet
-# Implemented in the LDAP backend code the same fix than in PostgreSQL backend
-# code for people who don't use PyKota tools to manage accounts.
-#
-# Revision 1.93  2004/12/31 16:10:57  jalet
-# Fixed recently introduced bugs due to extended userquotabase and groupquotabase
-# directives.
-#
-# Revision 1.92  2004/12/26 14:50:51  jalet
-# Normalized fields names in dumpykota's output so that an LDAP or PostgreSQL
-# dump is parseable the same way.
-#
-# Revision 1.91  2004/12/21 16:46:25  jalet
-# dumpykota's filtering capabilities are now supported within the LDAP
-# backend as well as within the PostgreSQL backend. Untested though since
-# my only PyKota+LDAP setup is on my laptop at work :-)
-#
-# Revision 1.90  2004/12/21 14:45:31  jalet
-# Prepared dumpykota to accept the new --filter command line option. Some
-# additionnal work needs to be done in the backends though.
-#
-# Revision 1.89  2004/12/02 22:27:11  jalet
-# Integrated and extended Stefan Wold's patch to store print quota entries
-# directly below the user or the group object with the LDAP backend
-#
-# Revision 1.88  2004/12/02 22:01:58  jalet
-# TLS is now supported with the LDAP backend
-#
-# Revision 1.87  2004/12/02 12:34:00  jalet
-# Now automates LDAP reconnections if the server dropped the connection due
-# to a timeout.
-#
-# Revision 1.86  2004/10/25 14:12:25  jalet
-# For URGENT legal reasons (Italy), a new "privacy" directive was added to pykota.conf
-# to hide print jobs' title, filename, and options.
-#
-# Revision 1.85  2004/10/24 12:55:09  jalet
-# Missing spaces
-#
-# Revision 1.84  2004/10/12 08:58:53  jalet
-# Now warnpykota only warns users who have already printed, to not confuse
-# users who have just opened their account.
-#
-# Revision 1.83  2004/10/07 21:14:28  jalet
-# Hopefully final fix for data encoding to and from the database
-#
-# Revision 1.82  2004/10/05 09:59:20  jalet
-# Restore compatibility with Python 2.1
-#
-# Revision 1.81  2004/10/04 11:27:57  jalet
-# Finished LDAP support for dumpykota.
-#
-# Revision 1.80  2004/10/03 19:57:57  jalet
-# Dump of payments should work with LDAP backend now.
-#
-# Revision 1.79  2004/10/03 19:52:59  jalet
-# More work done on LDAP and dumpykota
-#
-# Revision 1.78  2004/10/02 05:48:56  jalet
-# Should now correctly deal with charsets both when storing into databases and when
-# retrieving datas. Works with both PostgreSQL and LDAP.
-#
-# Revision 1.77  2004/09/28 14:29:00  jalet
-# dumpykota for LDAP backend is almost there.
-#
-# Revision 1.76  2004/09/28 09:11:56  jalet
-# Fix for accented chars in print job's title, filename, and options
-#
-# Revision 1.75  2004/09/24 20:21:50  jalet
-# Fixed pykotaAccountBalance object location during creation
-#
-# Revision 1.74  2004/09/02 10:09:30  jalet
-# Fixed bug in LDAP user deletion code which didn't correctly delete the user's
-# pykotaLastJob entries.
-#
-# Revision 1.73  2004/07/17 20:37:27  jalet
-# Missing file... Am I really stupid ?
-#
-# Revision 1.72  2004/07/01 19:56:43  jalet
-# Better dispatching of error messages
-#
-# Revision 1.71  2004/07/01 17:45:49  jalet
-# Added code to handle the description field for printers
-#
-# Revision 1.70  2004/06/10 20:50:25  jalet
-# Better log message
-#
-# Revision 1.69  2004/06/05 22:18:04  jalet
-# Now catches some exceptions earlier.
-# storage.py and ldapstorage.py : removed old comments
-#
-# Revision 1.68  2004/06/05 22:03:50  jalet
-# Payments history is now stored in database
-#
-# Revision 1.67  2004/06/03 23:14:10  jalet
-# Now stores the job's size in bytes in the database.
-# Preliminary work on payments storage : database schemas are OK now,
-# but no code to store payments yet.
-# Removed schema picture, not relevant anymore.
-#
-# Revision 1.66  2004/05/28 20:56:45  jalet
-# Extended syntax for LDAP specific newuser and newgroup directives. Untested.
-#
-# Revision 1.65  2004/05/27 12:52:12  jalet
-# More useful error message in case of misconfiguration of an LDAP  search base
-# in pykota.conf
-#
-# Revision 1.64  2004/05/26 14:50:01  jalet
-# First try at saving the job-originating-hostname in the database
-#
-# Revision 1.63  2004/05/06 12:37:46  jalet
-# pkpgcounter : comments
-# pkprinters : when --add is used, existing printers are now skipped.
-#
-# Revision 1.62  2004/03/05 14:31:58  jalet
-# Improvement on strange history entries
-#
-# Revision 1.61  2004/03/05 13:19:53  jalet
-# Code safer wrt entries created in other tools
-#
-# Revision 1.60  2004/03/02 14:39:02  jalet
-# Final fix for printers searching
-#
-# Revision 1.59  2004/03/02 14:35:46  jalet
-# Missing test when searching printer objects when these objects were manually
-# created and don't contain the pykotaPrinterName attribute
-#
-# Revision 1.58  2004/02/27 09:30:33  jalet
-# datelimit wasn't reset when modifying soft and hard limits with the LDAP backend
-#
-# Revision 1.57  2004/02/26 14:18:07  jalet
-# Should fix the remaining bugs wrt printers groups and users groups.
-#
-# Revision 1.56  2004/02/25 16:52:39  jalet
-# Small fix wrt empty user groups
-#
-# Revision 1.55  2004/02/23 22:53:21  jalet
-# Don't retrieve data when it's not needed, to avoid database queries
-#
-# Revision 1.54  2004/02/20 16:38:39  jalet
-# ldapcache directive marked as experimental
-#
-# Revision 1.53  2004/02/20 14:42:21  jalet
-# Experimental ldapcache directive added
-#
-# Revision 1.52  2004/02/17 23:41:48  jalet
-# Preliminary work on low-level LDAP specific cache.
-#
-# Revision 1.51  2004/02/04 13:24:41  jalet
-# pkprinters can now remove printers from printers groups.
-#
-# Revision 1.50  2004/02/04 11:17:00  jalet
-# pkprinters command line tool added.
-#
-# Revision 1.49  2004/01/29 22:35:45  jalet
-# Small fix from Matt.
-#
-# Revision 1.48  2004/01/12 14:35:02  jalet
-# Printing history added to CGI script.
-#
-# Revision 1.47  2004/01/10 09:44:02  jalet
-# Fixed potential accuracy problem if a user printed on several printers at
-# the very same time.
-#
-# Revision 1.46  2004/01/08 16:33:27  jalet
-# Additionnal check to not create a circular printers group.
-#
-# Revision 1.45  2004/01/08 16:24:49  jalet
-# edpykota now supports adding printers to printer groups.
-#
-# Revision 1.44  2004/01/08 14:10:33  jalet
-# Copyright year changed.
-#
-# Revision 1.43  2004/01/06 14:24:59  jalet
-# Printer groups should be cached now, if caching is enabled.
-#
-# Revision 1.42  2003/12/29 14:12:48  uid67467
-# Tries to workaround possible integrity violations when retrieving printer groups
-#
-# Revision 1.41  2003/12/27 16:49:25  uid67467
-# Should be ok now.
-#
-# Revision 1.40  2003/11/29 22:02:14  jalet
-# Don't try to retrieve the user print quota information if current printer
-# doesn't exist.
-#
-# Revision 1.39  2003/11/26 23:35:32  jalet
-# Added a bit of code to support the setting of the user's email address
-# which was ignored during writes for now.
-#
-# Revision 1.38  2003/11/24 09:54:06  jalet
-# Small fix for LDAP when pykotaOptions attribute wasn't present.
-#
-# Revision 1.37  2003/11/23 19:01:37  jalet
-# Job price added to history
-#
-# Revision 1.36  2003/11/21 14:28:46  jalet
-# More complete job history.
-#
-# Revision 1.35  2003/11/12 13:06:37  jalet
-# Bug fix wrt no user/group name command line argument to edpykota
-#
-# Revision 1.34  2003/10/24 08:37:55  jalet
-# More complete messages in case of LDAP failure.
-# LDAP database connection is now unbound on exit too.
-#
-# Revision 1.33  2003/10/08 07:01:20  jalet
-# Job history can be disabled.
-# Some typos in README.
-# More messages in setup script.
-#
-# Revision 1.32  2003/10/07 14:23:25  jalet
-# More work on cache
-#
-# Revision 1.31  2003/10/07 09:07:30  jalet
-# Character encoding added to please latest version of Python
-#
-# Revision 1.30  2003/10/06 14:42:36  jalet
-# LDAP group access will be slower when cache is disabled, but at least code
-# is consistent with the rest of the caching mechanis, but at least code
-# is consistent with the rest of the caching mechanism
-#
-# Revision 1.29  2003/10/06 13:12:28  jalet
-# More work on caching
-#
-# Revision 1.28  2003/10/03 12:27:02  jalet
-# Several optimizations, especially with LDAP backend
-#
-# Revision 1.27  2003/10/03 08:57:55  jalet
-# Caching mechanism now caches all that's cacheable.
-#
-# Revision 1.26  2003/10/02 20:23:18  jalet
-# Storage caching mechanism added.
-#
-# Revision 1.25  2003/08/20 15:56:24  jalet
-# Better user and group deletion
-#
-# Revision 1.24  2003/07/29 20:55:17  jalet
-# 1.14 is out !
-#
-# Revision 1.23  2003/07/29 19:52:32  jalet
-# Forgot to read the email field from LDAP
-#
-# Revision 1.22  2003/07/29 09:54:03  jalet
-# Added configurable LDAP mail attribute support
-#
-# Revision 1.21  2003/07/28 09:11:12  jalet
-# PyKota now tries to add its attributes intelligently in existing LDAP
-# directories.
-#
-# Revision 1.20  2003/07/25 10:41:30  jalet
-# Better documentation.
-# pykotme now displays the current user's account balance.
-# Some test changed in ldap module.
-#
-# Revision 1.19  2003/07/14 14:18:16  jalet
-# Wrong documentation strings
-#
-# Revision 1.18  2003/07/11 14:23:13  jalet
-# When adding an user only adds one object containing both the user and
-# its account balance instead of two objects.
-#
-# Revision 1.17  2003/07/07 12:51:07  jalet
-# Small fix
-#
-# Revision 1.16  2003/07/07 12:11:13  jalet
-# Small fix
-#
-# Revision 1.15  2003/07/07 11:49:24  jalet
-# Lots of small fixes with the help of PyChecker
-#
-# Revision 1.14  2003/07/07 08:33:18  jalet
-# Bug fix due to a typo in LDAP code
-#
-# Revision 1.13  2003/07/05 07:46:50  jalet
-# The previous bug fix was incomplete.
-#
-# Revision 1.12  2003/06/30 13:54:21  jalet
-# Sorts by user / group name
-#
-# Revision 1.11  2003/06/25 14:10:01  jalet
-# Hey, it may work (edpykota --reset excepted) !
-#
-# Revision 1.10  2003/06/16 21:55:15  jalet
-# More work on LDAP, again. Problem detected.
-#
-# Revision 1.9  2003/06/16 11:59:09  jalet
-# More work on LDAP
-#
-# Revision 1.8  2003/06/15 22:26:52  jalet
-# More work on LDAP
-#
-# Revision 1.7  2003/06/14 22:44:21  jalet
-# More work on LDAP storage backend.
-#
-# Revision 1.6  2003/06/13 19:07:57  jalet
-# Two big bugs fixed, time to release something ;-)
-#
-# Revision 1.5  2003/06/10 16:37:54  jalet
-# Deletion of the second user which is not needed anymore.
-# Added a debug configuration field in /etc/pykota.conf
-# All queries can now be sent to the logger in debug mode, this will
-# greatly help improve performance when time for this will come.
-#
-# Revision 1.4  2003/06/10 10:45:32  jalet
-# Not implemented methods now raise an exception when called.
-#
-# Revision 1.3  2003/06/06 20:49:15  jalet
-# Very latest schema. UNTESTED.
-#
-# Revision 1.2  2003/06/06 14:21:08  jalet
-# New LDAP schema.
-# Small bug fixes.
-#
-# Revision 1.1  2003/06/05 11:19:13  jalet
-# More good work on LDAP storage.
-#
 #
 #
