MCPcopy Index your code
hub / github.com/secdev/scapy / edit

Method edit

scapy/modules/ldaphero.py:1137–1146  ·  view source on GitHub ↗
(*_)

Source from the content-addressed store, hash-verified

1135 addace(i, acltree, ace)
1136
1137 def edit(*_):
1138 try:
1139 selected = int(acltree.selection()[0])
1140 ace = aclobj.Aces[selected]
1141 except IndexError:
1142 return
1143 acegui(ace)
1144 # Update
1145 acltree.delete(selected)
1146 addace(selected, acltree, ace, pos=selected)
1147
1148 btnfrm = ttk.Frame(aclfrm)
1149 btnfrm.grid_columnconfigure(0, weight=1)

Callers

nothing calls this directly

Calls 7

_edit_popupMethod · 0.95
tprintMethod · 0.95
LDAP_AttributeValueClass · 0.90
modifyMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected