#NEWLINE# def __init__( self , group_names , any_permission = None , add_permission = None , change_permission = None , delete_permission = None ) : #NEWLINE# #INDENT# '\n        Constructor\n\n        Parameters\n        ----------\n        group_names : string or list\n            A group name list of this permission logic treat\n        any_permission : boolean\n            True for give any permission to the user_obj\n            Default value will be taken from\n            ``PERMISSION_DEFAULT_GIPL_ANY_PERMISSION`` in\n            settings.\n        add_permission : boolean\n            True for give add permission to the user_obj.\n            It will be ignored if :attr:`any_permission` is True.\n            Default value will be taken from\n            ``PERMISSION_DEFAULT_GIPL_ADD_PERMISSION`` in\n            settings.\n        change_permission : boolean\n            True for give change permission of the specified object to the\n            user_obj.\n            It will be ignored if :attr:`any_permission` is True.\n            Default value will be taken from\n            ``PERMISSION_DEFAULT_GIPL_CHANGE_PERMISSION`` in\n            settings.\n        delete_permission : boolean\n            True for give delete permission of the specified object to the\n            user_obj.\n            It will be ignored if :attr:`any_permission` is True.\n            Default value will be taken from\n            ``PERMISSION_DEFAULT_GIPL_DELETE_PERMISSION`` in\n            settings.\n        ' #NEWLINE# self . group_names = group_names #NEWLINE# if ( not isinstance ( self . group_names , ( list , tuple ) ) ) : #NEWLINE# #INDENT# self . group_names = [ self . group_names ] #NEWLINE# #UNINDENT# self . any_permission = any_permission #NEWLINE# self . add_permission = add_permission #NEWLINE# self . change_permission = change_permission #NEWLINE# self . delete_permission = delete_permission #NEWLINE# if ( self . any_permission is None ) : #NEWLINE# #INDENT# self . any_permission = settings . PERMISSION_DEFAULT_GIPL_ANY_PERMISSION #NEWLINE# #UNINDENT# if ( self . add_permission is None ) : #NEWLINE# #INDENT# self . add_permission = settings . PERMISSION_DEFAULT_GIPL_ADD_PERMISSION #NEWLINE# #UNINDENT# if ( self . change_permission is None ) : #NEWLINE# #INDENT# self . change_permission = settings . PERMISSION_DEFAULT_GIPL_CHANGE_PERMISSION #NEWLINE# #UNINDENT# if ( self . delete_permission is None ) : #NEWLINE# #INDENT# self . delete_permission = settings . PERMISSION_DEFAULT_GIPL_DELETE_PERMISSION