MCPcopy Create free account
hub / github.com/secdev/scapy / editentrylist

Method editentrylist

scapy/modules/ldaphero.py:1523–1544  ·  view source on GitHub ↗

This is called to load an element from the "Entry List"

()

Source from the content-addressed store, hash-verified

1521 valuesv.set("")
1522
1523 def editentrylist():
1524 """
1525 This is called to load an element from the "Entry List"
1526 """
1527 try:
1528 selected = int(entrylist.curselection()[0])
1529 except IndexError:
1530 return
1531 # If there's a previously edited (unfinished), clear
1532 if self.currently_editing is not None:
1533 entrylist.itemconfigure(self.currently_editing, fg="black")
1534 # Set currently edited mode
1535 self.currently_editing = selected
1536 # Show selected item in blue
1537 entrylist.itemconfigure(selected, fg="blue")
1538 entrylist.selection_clear(selected)
1539
1540 operation = operations[selected]
1541 # Set textboxes
1542 scopev.set(operation[0])
1543 attributev.set(operation[1])
1544 valuesv.set(self._format_attribute(operation[1], operation[2]))
1545
1546 def removeentrylist():
1547 """

Callers

nothing calls this directly

Calls 2

_format_attributeMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected