Ejemplo n.º 1
0
 def unlock_account(self, ua):
     shell = getattr(ua, 'previous_shell', settings.DEFAULT_SHELL)
     if not shell or shell.strip() == '':
         shell = settings.DEFAULT_SHELL
     from karaage.datastores import change_shell
     change_shell(ua, shell)
Ejemplo n.º 2
0
 def change_shell(self, shell):
     from karaage.datastores import change_shell
     change_shell(self, shell)
Ejemplo n.º 3
0
 def lock_account(self, ua):
     ua.previous_shell = ua.loginShell()
     ua.save()
     from karaage.datastores import change_shell
     change_shell(ua, settings.LOCKED_SHELL)