azkaban_cli/azkaban.py
def __check_group_permissions(self, permission_options):
        """
        Check the group permissions for the project. Catch all permission from the dict and set as True, if the option
        dont exists in this dict, set False. If no permissions are found, just set the Read default to true, as in the
        web version of Azkaban.

        ADMIN.....: Allows the user to do anything with this project, as well as add permissions and delete the project.
        READ......: The user can view the job, the flows, the execution logs.
        WRITE.....: Project files can be uploaded, and the job files can be modified.
        EXECUTE...: The user is allowed to execute, pause, cancel jobs.
        SCHEDULE..: The user is allowed to add, modify and remove a flow from the schedule.

        :param Dictionary permission_options: The group permissions in the project on Azkaban
        :return: Dictionary filled_permission_options: Dictionary containing filled permissions.
        """
        __options = ["admin", "write", "read", "execute", "schedule"]
        filled_permission_options = {
            option: permission_options[option] if option in permission_options else False for option in __options
        }

        have_declared_options = \
            filled_permission_options['admin'] and \
            filled_permission_options['read'] and \
            filled_permission_options['write'] and \
            filled_permission_options['execute'] and \
            filled_permission_options['schedule']

        if filled_permission_options['admin']:
            filled_permission_options = {option: True for option in filled_permission_options}

        elif not have_declared_options:
            filled_permission_options['read'] = True

        return filled_permission_options

        Check the group permissions for the project. Catch all permission from the dict and set as True, if the option
        dont exists in this dict, set False. If no permissions are found, just set the Read default to true, as in the
        web version of Azkaban.

        ADMIN.....: Allows the user to do anything with this project, as well as add permissions and delete the project.
        READ......: The user can view the job, the flows, the execution logs.
        WRITE.....: Project files can be uploaded, and the job files can be modified.
        EXECUTE...: The user is allowed to execute, pause, cancel jobs.
        SCHEDULE..: The user is allowed to add, modify and remove a flow from the schedule.

        :param Dictionary permission_options: The group permissions in the project on Azkaban
        :return: Dictionary filled_permission_options: Dictionary containing filled permissions.
        
Check the group permissions for the project. Catch all permission from the dict and set as True, if the option
dont exists in this dict, set False. If no permissions are found, just set the Read default to true, as in the
web version of Azkaban.

ADMIN.....: Allows the user to do anything with this project, as well as add permissions and delete the project.
READ......: The user can view the job, the flows, the execution logs.
WRITE.....: Project files can be uploaded, and the job files can be modified.
EXECUTE...: The user is allowed to execute, pause, cancel jobs.
SCHEDULE..: The user is allowed to add, modify and remove a flow from the schedule.
Check the group permissions for the project . Catch all permission from the dict and set as True if the option dont exists in this dict set False . If no permissions are found just set the Read default to true as in the web version of Azkaban . ADMIN ..... : Allows the user to do anything with this project as well as add permissions and delete the project . READ ...... : The user can view the job the flows the execution logs . WRITE ..... : Project files can be uploaded and the job files can be modified . EXECUTE ... : The user is allowed to execute pause cancel jobs . SCHEDULE .. : The user is allowed to add modify and remove a flow from the schedule .
def __check_group_permissions(self, permission_options):
        __options = ["admin", "write", "read", "execute", "schedule"]
        filled_permission_options = {
            option: permission_options[option] if option in permission_options else False for option in __options
        }
        have_declared_options = \
            filled_permission_options['admin'] and \
            filled_permission_options['read'] and \
            filled_permission_options['write'] and \
            filled_permission_options['execute'] and \
            filled_permission_options['schedule']
        if filled_permission_options['admin']:
            filled_permission_options = {option: True for option in filled_permission_options}
        elif not have_declared_options:
            filled_permission_options['read'] = True
        return filled_permission_options
def __check_group_permissions ( self , permission_options ) : __options = [ "admin" , "write" , "read" , "execute" , "schedule" ] filled_permission_options = { option : permission_options [ option ] if option in permission_options else False for option in __options } have_declared_options = filled_permission_options [ 'admin' ] and filled_permission_options [ 'read' ] and filled_permission_options [ 'write' ] and filled_permission_options [ 'execute' ] and filled_permission_options [ 'schedule' ] if filled_permission_options [ 'admin' ] : filled_permission_options = { option : True for option in filled_permission_options } elif not have_declared_options : filled_permission_options [ 'read' ] = True return filled_permission_options
Check the group permissions for the project.
Check the group permissions for the project .
"""
        Check the group permissions for the project. Catch all permission from the dict and set as True, if the option
        dont exists in this dict, set False. If no permissions are found, just set the Read default to true, as in the
        web version of Azkaban.

        ADMIN.....: Allows the user to do anything with this project, as well as add permissions and delete the project.
        READ......: The user can view the job, the flows, the execution logs.
        WRITE.....: Project files can be uploaded, and the job files can be modified.
        EXECUTE...: The user is allowed to execute, pause, cancel jobs.
        SCHEDULE..: The user is allowed to add, modify and remove a flow from the schedule.

        :param Dictionary permission_options: The group permissions in the project on Azkaban
        :return: Dictionary filled_permission_options: Dictionary containing filled permissions.
        """
Dictionary filled_permission_options: Dictionary containing filled permissions.
Dictionary filled_permission_options : Dictionary containing filled permissions .
self
permission_options
The group permissions in the project on Azkaban
The group permissions in the project on Azkaban