~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to bin/ivle-remakeuser

  • Committer: Matt Giuca
  • Date: 2009-05-12 13:50:49 UTC
  • mto: This revision was merged to the branch mainline in revision 1247.
  • Revision ID: matt.giuca@gmail.com-20090512135049-mlg7kqdpcqmdgphe
ivle.database: User/ProjectGroup: Added 'short_name' methods so we have a
        general interface for displaying the short name.
    ProjectGroup: Changed display_name from showing the name (short name) to
        the nick (friendly name).
    Added docstrings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
import os
29
29
import optparse
30
30
import logging
31
 
import traceback
32
31
 
33
32
import ivle.config
34
33
import ivle.database
67
66
    try:
68
67
        ivle.makeuser.make_jail(user, config)
69
68
    except Exception, message:
70
 
        logging.error("Failed to recreate jail for %s.\n%s" % 
71
 
                      (user.login, traceback.format_exc()))
 
69
        logging.warning(str(message))
72
70
        continue
73
71
 
74
72
    logging.debug("recreated user %s's jail." % user.login)