Show
Ignore:
Timestamp:
04/04/06 11:40:56 (18 years ago)
Author:
jerome
Message:

Improved the code's quality a bit with pylint.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/ldapstorage.py

    r2798 r2830  
    3030 
    3131import sys 
    32 import os 
    3332import types 
    3433import time 
     
    3938from mx import DateTime 
    4039 
    41 from pykota.storage import PyKotaStorageError, BaseStorage, StorageObject, \ 
     40from pykota.storage import PyKotaStorageError, BaseStorage, \ 
    4241                           StorageUser, StorageGroup, StoragePrinter, \ 
    4342                           StorageJob, StorageLastJob, StorageUserPQuota, \ 
     
    827826        names = [self.userCharsetToDatabase(n) for n in names] 
    828827        if self.info["userquotabase"].lower() == "user" : 
    829            base = self.info["userbase"] 
     828            base = self.info["userbase"] 
    830829        else : 
    831            base = self.info["userquotabase"] 
     830            base = self.info["userquotabase"] 
    832831        result = self.doSearch("(&(objectClass=pykotaUserPQuota)(pykotaPrinterName=%s)(|%s))" % \ 
    833832                                  (pname, "".join(["(pykotaUserName=%s)" % uname for uname in names])), \ 
     
    872871        names = [self.userCharsetToDatabase(n) for n in names] 
    873872        if self.info["groupquotabase"].lower() == "group" : 
    874            base = self.info["groupbase"] 
     873            base = self.info["groupbase"] 
    875874        else : 
    876            base = self.info["groupquotabase"] 
     875            base = self.info["groupquotabase"] 
    877876        result = self.doSearch("(&(objectClass=pykotaGroupPQuota)(pykotaPrinterName=%s)(|%s))" % \ 
    878877                                  (pname, "".join(["(pykotaGroupName=%s)" % gname for gname in names])), \