server/serverctl.py
branchstable
changeset 2107 6c4a4c514ac2
parent 2106 2295f2aba61d
child 2394 92bba46b853f
child 2417 18a14c23413c
--- a/server/serverctl.py	Mon Jun 15 12:42:16 2009 +0200
+++ b/server/serverctl.py	Mon Jun 15 12:42:48 2009 +0200
@@ -10,14 +10,14 @@
 import sys
 import os
 
-from logilab.common.configuration import REQUIRED, Configuration
+from logilab.common.configuration import Configuration
 from logilab.common.clcommands import register_commands, cmd_run, pop_arg
 
 from cubicweb import AuthenticationError, ExecutionError, ConfigurationError
 from cubicweb.toolsutils import Command, CommandHandler, confirm
 from cubicweb.server import SOURCE_TYPES
 from cubicweb.server.utils import ask_source_config
-from cubicweb.server.serverconfig import ServerConfiguration
+from cubicweb.server.serverconfig import USER_OPTIONS, ServerConfiguration
 
 
 # utility functions ###########################################################
@@ -176,19 +176,6 @@
         else:
             print 'nevermind, you can do it later using the db-create command'
 
-USER_OPTIONS =  (
-    ('login', {'type' : 'string',
-               'default': REQUIRED,
-               'help': "cubicweb manager account's login "
-               '(this user will be created)',
-               'inputlevel': 0,
-               }),
-    ('password', {'type' : 'password',
-                  'help': "cubicweb manager account's password",
-                  'inputlevel': 0,
-                  }),
-    )
-
 
 class RepositoryDeleteHandler(CommandHandler):
     cmdname = 'delete'