Changeset 698 for pykota/trunk
- Timestamp:
- 02/05/03 23:10:29 (22 years ago)
- Location:
- pykota/trunk/pykota
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/logger.py
r697 r698 15 15 # 16 16 # $Log$ 17 # Revision 1.3 2003/02/05 22:10:29 jalet 18 # Typos 19 # 17 20 # Revision 1.2 2003/02/05 22:02:22 jalet 18 21 # __import__ statement didn't work as expected … … 39 42 backend = config.getLoggingBackend() 40 43 try : 41 if not isalpha(backend) :44 if not backend.isalpha() : 42 45 # don't trust user input 43 46 raise ImportError -
pykota/trunk/pykota/requester.py
r697 r698 15 15 # 16 16 # $Log$ 17 # Revision 1.3 2003/02/05 22:10:29 jalet 18 # Typos 19 # 17 20 # Revision 1.2 2003/02/05 22:02:22 jalet 18 21 # __import__ statement didn't work as expected … … 37 40 backend = config.getRequesterBackend(printername) 38 41 try : 39 if not isalpha(backend) :42 if not backend.isalpha() : 40 43 # don't trust user input 41 44 raise ImportError -
pykota/trunk/pykota/storage.py
r697 r698 15 15 # 16 16 # $Log$ 17 # Revision 1.3 2003/02/05 22:10:29 jalet 18 # Typos 19 # 17 20 # Revision 1.2 2003/02/05 22:02:22 jalet 18 21 # __import__ statement didn't work as expected … … 37 40 (backend, host, database, admin, user) = config.getStorageBackend() 38 41 try : 39 if not isalpha(backend) :42 if not backend.isalpha() : 40 43 # don't trust user input 41 44 raise ImportError -
pykota/trunk/pykota/tool.py
r695 r698 15 15 # 16 16 # $Log$ 17 # Revision 1.2 2003/02/05 22:10:29 jalet 18 # Typos 19 # 17 20 # Revision 1.1 2003/02/05 21:28:17 jalet 18 21 # Initial import into CVS … … 43 46 """Initializes the command line tool.""" 44 47 self.config = config.PyKotaConfig(os.environ.get("CUPS_SERVERROOT", "/etc/cups")) 45 self.logger = logger. Logger(self.config)48 self.logger = logger.openLogger(self.config) 46 49 self.storage = storage.openConnection(self.config, asadmin=(not isfilter)) 47 50 self.printername = os.environ.get("PRINTER", None)