Show
Ignore:
Timestamp:
07/01/04 21:56:43 (20 years ago)
Author:
jalet
Message:

Better dispatching of error messages

Files:
1 modified

Legend:

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

    r1582 r1584  
    2222# 
    2323# $Log$ 
     24# Revision 1.72  2004/07/01 19:56:43  jalet 
     25# Better dispatching of error messages 
     26# 
    2427# Revision 1.71  2004/07/01 17:45:49  jalet 
    2528# Added code to handle the description field for printers 
     
    805808                message = _("Unable to find an existing objectClass %s entry with %s=%s to attach pykotaAccount objectClass") % (where, self.info["userrdn"], user.Name) 
    806809                if action.lower() == "warn" :     
    807                     self.tool.logger.log_message("%s. A new entry will be created instead." % message, "warn") 
     810                    self.tool.printInfo("%s. A new entry will be created instead." % message, "warn") 
    808811                else : # 'fail' or incorrect setting 
    809812                    raise PyKotaStorageError, "%s. Action aborted. Please check your configuration." % message 
     
    841844                message = _("Unable to find an existing entry to attach pykotaGroup objectclass %s") % group.Name 
    842845                if action.lower() == "warn" :     
    843                     self.tool.logger.log_message("%s. A new entry will be created instead." % message, "warn") 
     846                    self.tool.printInfo("%s. A new entry will be created instead." % message, "warn") 
    844847                else : # 'fail' or incorrect setting 
    845848                    raise PyKotaStorageError, "%s. Action aborted. Please check your configuration." % message