()
| 132 | |
| 133 | @restart() |
| 134 | def del_user(): |
| 135 | cs = ClientSelector(_('del user')) |
| 136 | group = cs.group |
| 137 | |
| 138 | if group == None: |
| 139 | pass |
| 140 | else: |
| 141 | client_index = cs.client_index |
| 142 | print(_("del user info:")) |
| 143 | print(group.show_node(client_index)) |
| 144 | choice = readchar(_("delete?(y/n): ")).lower() |
| 145 | if choice == 'y': |
| 146 | if len(group.node_list) == 1: |
| 147 | clean_iptables(group.port) |
| 148 | nw = NodeWriter() |
| 149 | nw.del_user(group, client_index) |
| 150 | return True |
| 151 | else: |
| 152 | print(_("undo delete")) |
nothing calls this directly
no test coverage detected