Index: trunk/tools/subversion/user-management/homedirectorymanager.py |
— | — | @@ -73,11 +73,11 @@ |
74 | 74 | if self.options.group: |
75 | 75 | self.group = self.options.group |
76 | 76 | |
77 | | - if options.logfile: |
78 | | - self.logfile = options.logfile |
| 77 | + if self.options.logfile: |
| 78 | + self.logfile = self.options.logfile |
79 | 79 | |
80 | | - if options.loglevel: |
81 | | - self.setLogLevel(options.loglevel) |
| 80 | + if self.options.loglevel: |
| 81 | + self.setLogLevel(self.options.loglevel) |
82 | 82 | |
83 | 83 | # use proxy agent by default |
84 | 84 | ldapSupportLib.setBindInfoByOptions(self.options, parser) |
— | — | @@ -333,9 +333,9 @@ |
334 | 334 | def setDebugLevel(self, loglevel): |
335 | 335 | if loglevel.lower() == "debug": |
336 | 336 | self.loglevel = DEBUG |
337 | | - else if loglevel.lower() == "info": |
| 337 | + elif loglevel.lower() == "info": |
338 | 338 | self.loglevel = INFO |
339 | | - else if loglevel.lower() == "none": |
| 339 | + elif loglevel.lower() == "none": |
340 | 340 | self.loglevel = NONE |
341 | 341 | else: |
342 | 342 | self.loglevel = INFO |