Skip to content

Commit

Permalink
fix: jans-cli user-management:remove groups
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed Nov 6, 2022
1 parent 27578e3 commit da0edbb
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions jans-cli-tui/plugins/070_users/edit_user_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,26 +119,6 @@ def get_custom_attribute(attribute, multi=False):
)


member_of = [[grp] for grp in get_custom_attribute('memberOf', multi=True) ]
member_of_label = _("Member of")
add_group_label = _("Add Group")
self.member_of_container = JansVerticalNav(
myparent=self.app,
headers=['Group'],
preferred_size=[40],
data=member_of,
on_delete=self.delete_group,
selectes=0,
headerColor='class:outh-client-navbar-headcolor',
entriesColor='class:outh-client-navbar-entriescolor',
all_data=member_of,
underline_headings=False,
max_width=40,
jans_name='configurationProperties',
max_height=False
)


self.edit_user_content = [
self.app.getTitledText(_("Inum"), name='inum', value=self.data.get('inum',''), style='class:script-titledtext', jans_help=self.app.get_help_from_schema(schema, 'inum'), read_only=True),
self.app.getTitledText(_("First Name"), name='givenName', value=self.data.get('givenName',''), style='class:script-titledtext', jans_help=self.app.get_help_from_schema(schema, 'givenName')),
Expand All @@ -160,16 +140,6 @@ def get_custom_attribute(attribute, multi=False):
]),
], height=4, width=D()),

VSplit([
Label(text=member_of_label, style='class:script-label', width=len(member_of_label)+1),
self.member_of_container,
Window(width=2),
HSplit([
Window(height=1),
Button(text=add_group_label, width=len(add_group_label)+4, handler=self.add_group),
]),
], height=4, width=D()),

]


Expand Down Expand Up @@ -228,12 +198,6 @@ def delete_admin_ui_role(self, **kwargs: Any) -> None:
self.admin_ui_roles_container.remove_item(kwargs['selected'])


def delete_group(self, **kwargs: Any) -> None:
pass

def add_group(self):
pass

def __pt_container__(self)-> Dialog:
return self.dialog

0 comments on commit da0edbb

Please sign in to comment.