def __init__(self):
     self.menu_title = "Employee Menu"
     self._options = {'1': 'Manage customers',
                           '3': 'Manage movies', '4': 'Manage directors'}
     self._actions = {'1': MenuManageCustomer, '4': MenuManageDirector}
     MenuBase.__init__(self, self._options, self._actions, self.menu_title)
     """ Super class constructor """
Beispiel #2
0
 def __init__(self):
     self.menu_title = "Administrator Menu"
     self.admin_options = {'1': 'Manage users', '2': 'Manage customers',
                           '3': 'Manage movies', '4': 'Manage directors'}
     self.admin_actions = {'1': MenuManageUser, '2': MenuManageCustomer, '4': MenuManageDirector}
     MenuBase.__init__(self, self.admin_options, self.admin_actions, self.menu_title)
     """ Super class constructor """
Beispiel #3
0
 def __init__(self):
     self.menu_title = "Employee Menu"
     self._options = {
         '1': 'Manage customers',
         '3': 'Manage movies',
         '4': 'Manage directors'
     }
     self._actions = {'1': MenuManageCustomer, '4': MenuManageDirector}
     MenuBase.__init__(self, self._options, self._actions, self.menu_title)
     """ Super class constructor """