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