Changeset 1021 for pykota/trunk/pykota/config.py
- Timestamp:
- 06/10/03 18:37:54 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/config.py
r1000 r1021 21 21 # 22 22 # $Log$ 23 # Revision 1.28 2003/06/10 16:37:54 jalet 24 # Deletion of the second user which is not needed anymore. 25 # Added a debug configuration field in /etc/pykota.conf 26 # All queries can now be sent to the logger in debug mode, this will 27 # greatly help improve performance when time for this will come. 28 # 23 29 # Revision 1.27 2003/05/27 23:00:21 jalet 24 30 # Big rewrite of external accounting methods. … … 183 189 for option in [ "storagebackend", "storageserver", \ 184 190 "storagename", "storageadmin", \ 185 "storageuser", \186 191 ] : 187 192 backendinfo[option] = self.getGlobalOption(option) 188 for option in [ "storageadminpw", "storageuserpw" ] : 189 backendinfo[option] = self.getGlobalOption(option, ignore=1) 193 backendinfo["storageadminpw"] = self.getGlobalOption("storageadminpw", ignore=1) 190 194 return backendinfo 191 195 … … 304 308 except ValueError : 305 309 raise PyKotaConfigError, _("Invalid grace delay %s") % gd 310 311 def getDebug(self) : 312 """Returns 1 if debugging is activated, else 0.""" 313 debug = self.getGlobalOption("debug", ignore=1) 314 if (debug is not None) and (debug.upper().strip() in ['Y', 'YES', '1', 'ON', 'O']) : 315 return 1 316 else : 317 return 0