(ace, parentdlg=dlg)
| 861 | sdcontrolfrm.grid(row=1, sticky="we") |
| 862 | |
| 863 | def acegui(ace, parentdlg=dlg): |
| 864 | data = ace.extractData(accessMask=LDAP_DS_ACCESS_RIGHTS) |
| 865 | |
| 866 | # Sub-dialog |
| 867 | subpopup = BasePopup(parentdlg) |
| 868 | dlg = subpopup.dlg |
| 869 | |
| 870 | # Edit ACE UI |
| 871 | dlg.columnconfigure(1, weight=1) |
| 872 | dlg.rowconfigure(tuple(range(8)), weight=1) |
| 873 | |
| 874 | # Trustee |
| 875 | trusteev = tk.StringVar() |
| 876 | trusteev.set(self._rslvsid(data["sid-string"])) |
| 877 | ttk.Label(dlg, text="Trustee").grid(row=0, column=0, sticky="we") |
| 878 | ttk.Combobox( |
| 879 | dlg, textvariable=trusteev, values=list(self.sidscombo.keys()) |
| 880 | ).grid(row=0, column=1, sticky="we") |
| 881 | |
| 882 | # ACE type |
| 883 | ttk.Label(dlg, text="ACE type").grid(row=1, column=0, sticky="we") |
| 884 | acetypefrm = ttk.Frame( |
| 885 | dlg, |
| 886 | ) |
| 887 | acetypev = tk.IntVar() |
| 888 | acetypev.set(ace.AceType - 5 if ace.AceType >= 5 else ace.AceType) |
| 889 | ttk.Radiobutton( |
| 890 | acetypefrm, |
| 891 | variable=acetypev, |
| 892 | text="Allow", |
| 893 | value=0x00, |
| 894 | ).grid(row=0, column=0) |
| 895 | ttk.Radiobutton( |
| 896 | acetypefrm, |
| 897 | variable=acetypev, |
| 898 | text="Deny", |
| 899 | value=0x01, |
| 900 | ).grid(row=0, column=1) |
| 901 | ttk.Radiobutton( |
| 902 | acetypefrm, |
| 903 | variable=acetypev, |
| 904 | text="Audit", |
| 905 | value=0x02, |
| 906 | ).grid(row=0, column=2) |
| 907 | ttk.Radiobutton( |
| 908 | acetypefrm, |
| 909 | variable=acetypev, |
| 910 | text="Alarm", |
| 911 | value=0x03, |
| 912 | state=tk.DISABLED, |
| 913 | ).grid(row=0, column=3) |
| 914 | acetypefrm.grid(row=1, column=1, sticky="we") |
| 915 | |
| 916 | # Access Mask |
| 917 | accessmaskfrm = ttk.LabelFrame( |
| 918 | dlg, |
| 919 | text="Access Mask", |
| 920 | ) |
nothing calls this directly
no test coverage detected