server/serverctl.py
branchstable
changeset 4719 aaed3f813ef8
parent 4718 3dc3ad02d091
child 4831 c5aec27c1bf7
child 4837 54969eec48eb
equal deleted inserted replaced
4718:3dc3ad02d091 4719:aaed3f813ef8
   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: