equal
deleted
inserted
replaced
444 name = 'reset-admin-pwd' |
444 name = 'reset-admin-pwd' |
445 arguments = '<instance>' |
445 arguments = '<instance>' |
446 |
446 |
447 def run(self, args): |
447 def run(self, args): |
448 """run the command with its specific arguments""" |
448 """run the command with its specific arguments""" |
449 from cubicweb.server.sqlutils import sqlexec, SQL_PREFIX |
|
450 from cubicweb.server.utils import crypt_password, manager_userpasswd |
449 from cubicweb.server.utils import crypt_password, manager_userpasswd |
451 appid = pop_arg(args, 1, msg='No instance specified !') |
450 appid = pop_arg(args, 1, msg='No instance specified !') |
452 config = ServerConfiguration.config_for(appid) |
451 config = ServerConfiguration.config_for(appid) |
453 sourcescfg = config.read_sources_file() |
452 sourcescfg = config.read_sources_file() |
454 try: |
453 try: |