Further style nit and fix a missing import error.

This commit is contained in:
Georg Brandl 2007-08-04 15:55:16 +00:00
parent 7e6201a701
commit a5c6fe7ac0
2 changed files with 3 additions and 4 deletions

View File

@ -589,8 +589,8 @@ div.admonition dt {
font-weight: bold;
}
div.admonition dd {
margin-bottom: 10px;
div.admonition dl {
margin-bottom: 0;
}
div.admonition p {
@ -616,7 +616,6 @@ p.admonition-title {
margin: 0px 10px 5px 0px;
font-weight: bold;
display: inline;
font-size: 1em;
}
table.docutils {

View File

@ -768,7 +768,7 @@ def _check_superuser(app):
pw2 = getpass.getpass('Enter password again: ')
if pw1 != pw2:
print 'Error: Passwords don\'t match.'
sys.exit(1)
raise SystemExit(1)
app.userdb.set_password('admin', pw1)
app.userdb.privileges['admin'].add('master')
app.userdb.save()