524 | | """Returns True if we want to convert usernames to lowercase when printing, else False.""" |
525 | | return self.isTrue(self.getGlobalOption("utolower", ignore=1)) |
| 524 | """Deprecated.""" |
| 525 | return self.getGlobalOption("utolower", ignore=1) |
| 526 | |
| 527 | def getUserNameCase(self) : |
| 528 | """Returns value for user name case: upper, lower or native""" |
| 529 | validvalues = [ "upper", "lower", "native" ] |
| 530 | value = self.getGlobalOption("usernamecase", ignore=1).strip().lower() |
| 531 | if value is None : |
| 532 | value = "native" |
| 533 | if value not in validvalues : |
| 534 | raise PyKotaConfigError, _("Option usernamecase only supports values in %s") % str(validvalues) |
| 535 | return value |