Changeset 782

Show
Ignore:
Timestamp:
02/10/03 02:02:17 (22 years ago)
Author:
jalet
Message:

External requester is about to work, but I must sleep

Location:
pykota/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/conf/pykota.conf.sample

    r780 r782  
    3232# Where to log ? 
    3333# supported values : stderr, system (system means syslog, but don't use 'syslog' here) 
    34 logger: stderr 
     34logger: system 
    3535 
    3636# Print Quota administrator 
     
    5858#     snmp(public, 43.10.2.1.4.1.1) 
    5959# are equivalent 
     60# WARNING : external doesn't work yet because of ConfigParser  
     61# which tries to do the %(printer)s substitution itself 
    6062requester: snmp(public, 43.10.2.1.4.1.1) 
    6163# 
  • pykota/trunk/pykota/tool.py

    r773 r782  
    1515# 
    1616# $Log$ 
     17# Revision 1.18  2003/02/10 01:02:17  jalet 
     18# External requester is about to work, but I must sleep 
     19# 
    1720# Revision 1.17  2003/02/09 13:05:43  jalet 
    1821# Internationalization continues... 
     
    7780import smtplib 
    7881import gettext 
    79 from locale import setlocale, LC_ALL 
     82import locale 
    8083 
    8184from mx import DateTime 
     
    97100        """Initializes the command line tool.""" 
    98101        # locale stuff 
    99         setlocale(LC_ALL, "") 
     102        try : 
     103            locale.setlocale(locale.LC_ALL, "") 
     104        except locale.Error : 
     105            pass 
    100106        gettext.install("pykota") 
    101107