Show More
@@ -276,7 +276,7 b' class DbManage(object):' | |||||
276 | email = defaults.get('email') |
|
276 | email = defaults.get('email') | |
277 |
|
277 | |||
278 | if username is None: |
|
278 | if username is None: | |
279 |
username = |
|
279 | username = input('Specify admin username:') | |
280 | if password is None: |
|
280 | if password is None: | |
281 | password = self._get_admin_password() |
|
281 | password = self._get_admin_password() | |
282 | if not password: |
|
282 | if not password: | |
@@ -285,7 +285,7 b' class DbManage(object):' | |||||
285 | if not password: |
|
285 | if not password: | |
286 | sys.exit() |
|
286 | sys.exit() | |
287 | if email is None: |
|
287 | if email is None: | |
288 |
email = |
|
288 | email = input('Specify admin email:') | |
289 | api_key = self.cli_args.get('api_key') |
|
289 | api_key = self.cli_args.get('api_key') | |
290 | self.create_user(username, password, email, True, |
|
290 | self.create_user(username, password, email, True, | |
291 | strict_creation_check=False, |
|
291 | strict_creation_check=False, | |
@@ -524,10 +524,10 b' class DbManage(object):' | |||||
524 | if _path is not None: |
|
524 | if _path is not None: | |
525 | path = _path |
|
525 | path = _path | |
526 | elif not self.tests and not test_repo_path: |
|
526 | elif not self.tests and not test_repo_path: | |
527 |
path = |
|
527 | path = input( | |
528 | 'Enter a valid absolute path to store repositories. ' |
|
528 | 'Enter a valid absolute path to store repositories. ' | |
529 | 'All repositories in that path will be added automatically:' |
|
529 | 'All repositories in that path will be added automatically:' | |
530 |
) |
|
530 | ) | |
531 | else: |
|
531 | else: | |
532 | path = test_repo_path |
|
532 | path = test_repo_path | |
533 | path_ok = True |
|
533 | path_ok = True |
@@ -17,7 +17,6 b' from zope.interface import implementer' | |||||
17 | from binascii import hexlify |
|
17 | from binascii import hexlify | |
18 |
|
18 | |||
19 |
|
19 | |||
20 |
|
||||
21 | class CustomSession(Session): |
|
20 | class CustomSession(Session): | |
22 | pass |
|
21 | pass | |
23 |
|
22 | |||
@@ -109,7 +108,7 b' def BeakerSessionFactoryConfig(**options' | |||||
109 | return storage |
|
108 | return storage | |
110 |
|
109 | |||
111 | def peek_flash(self, queue=''): |
|
110 | def peek_flash(self, queue=''): | |
112 |
storage = self.get('_f_' |
|
111 | storage = self.get(f'_f_{queue}', []) | |
113 | return storage |
|
112 | return storage | |
114 |
|
113 | |||
115 | # CSRF API methods |
|
114 | # CSRF API methods |
@@ -321,7 +321,7 b' def is_valid_repo_group(repo_group_name,' | |||||
321 |
|
321 | |||
322 | def ask_ok(prompt, retries=4, complaint='[y]es or [n]o please!'): |
|
322 | def ask_ok(prompt, retries=4, complaint='[y]es or [n]o please!'): | |
323 | while True: |
|
323 | while True: | |
324 |
ok = |
|
324 | ok = input(prompt) | |
325 | if ok.lower() in ('y', 'ye', 'yes'): |
|
325 | if ok.lower() in ('y', 'ye', 'yes'): | |
326 | return True |
|
326 | return True | |
327 | if ok.lower() in ('n', 'no', 'nop', 'nope'): |
|
327 | if ok.lower() in ('n', 'no', 'nop', 'nope'): |
General Comments 0
You need to be logged in to leave comments.
Login now