15 lines
511 B
Python
15 lines
511 B
Python
from .ConfirmationView import ConfirmationView
|
|
import ceo.krb_check as krb
|
|
|
|
|
|
class CreateDatabaseConfirmationView(ConfirmationView):
|
|
def __init__(self, model, controller, app):
|
|
super().__init__(model, controller, app)
|
|
db_type = self.model.db_type
|
|
db_type_name = 'MySQL' if db_type == 'mysql' else 'PostgreSQL'
|
|
username = krb.get_username()
|
|
lines = [
|
|
f"A new {db_type_name} database will be created for {username}."
|
|
]
|
|
self.set_lines(lines)
|