Beispiel #1
0
 def show_admin(self, log, settings, packages):
     """
     Display the administrative dialog with referenced content of the log
     and settings. Return a dictionary of the settings that may have been
     changed by the admin dialog.
     """
     admin_box = AdminDialog(self)
     admin_box.setup(log, settings, packages)
     result = admin_box.exec()
     if result:
         return admin_box.settings()
     else:
         return {}
Beispiel #2
0
 def show_admin(self, log, envars, theme):
     """
     Display the administrivite dialog with referenced content of the log
     and envars. Return the raw string representation of the environment
     variables to be used whenever a (regular) Python script is run.
     """
     admin_box = AdminDialog()
     admin_box.setup(log, envars, theme)
     admin_box.exec()
     return admin_box.envars()
Beispiel #3
0
 def show_admin(self, log, settings, theme):
     """
     Display the administrative dialog with referenced content of the log
     and settings. Return a dictionary of the settings that may have been
     changed by the admin dialog.
     """
     admin_box = AdminDialog()
     admin_box.setup(log, settings, theme)
     admin_box.exec()
     return admin_box.settings()
Beispiel #4
0
 def show_admin(self, log, envars, theme):
     """
     Display the administrivite dialog with referenced content of the log
     and envars. Return the raw string representation of the environment
     variables to be used whenever a (regular) Python script is run.
     """
     admin_box = AdminDialog()
     admin_box.setup(log, envars, theme)
     admin_box.exec()
     return admin_box.envars()
Beispiel #5
0
 def show_admin(self, log, settings, packages):
     """
     Display the administrative dialog with referenced content of the log
     and settings. Return a dictionary of the settings that may have been
     changed by the admin dialog.
     """
     admin_box = AdminDialog(self)
     admin_box.setup(log, settings, packages)
     result = admin_box.exec()
     if result:
         return admin_box.settings()
     else:
         return {}