File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2140,7 +2140,7 @@ session.acls.apply_atomic_operations(
21402140`ACLOperation` objects form a linear order with `iRODSAccess` objects, and
21412141indeed are subclassed from them as well, allowing intermixed sequences to be
21422142sorted . Care should be taken to normalize the objects before such comparisons,
2143- sorting, or with related uses of the ' in' operator:
2143+ sorting, or with related uses of the ' in' operator.
21442144```py
21452145from irods.access import *
21462146normalize = lambda acl : acl.copy(decanonicalize = - 1 , implied_zone = ' tempZone' )
@@ -2165,7 +2165,7 @@ pp(sorted(
21652165 ACLOperation(' read' , ' bob' ),
21662166 ACLOperation(' own' , ' rods' ),
21672167 ACLOperation(' read_object' , ' alice' )
2168- ],
2168+ ],
21692169 key = lambda acl : (all_permissions[acl.access_name], normalize(acl))
21702170))
21712171```
You can’t perform that action at this time.
0 commit comments