Skip to content

Commit

Permalink
feat(scripts): Added operator_itemgetter to standard (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeier76 authored Sep 29, 2024
1 parent 7257a12 commit 166e201
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Products/zms/standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -1670,6 +1670,13 @@ def operator_delattr(a, b):
"""
return delattr(a, b)

security.declarePublic('operator_itemgetter')
def operator_itemgetter(key, val, dictionary):

if val in map(operator.itemgetter(key), dictionary):
return True
return False

#)


Expand Down

0 comments on commit 166e201

Please sign in to comment.