mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Small group fixes: remove index, change to use hidden_fields (like UserFields)
This commit is contained in:
@@ -21,8 +21,9 @@ class GroupNewValidator(validators.Schema):
|
||||
class GroupNewForm(widgets.Form):
|
||||
params = ['group']
|
||||
|
||||
fields = [GroupFields.cn, GroupFields.description,
|
||||
GroupFields.dn_to_info_json]
|
||||
hidden_fields = [
|
||||
GroupFields.dn_to_info_json
|
||||
]
|
||||
|
||||
validator = GroupNewValidator()
|
||||
|
||||
@@ -46,10 +47,11 @@ class GroupEditValidator(validators.Schema):
|
||||
class GroupEditForm(widgets.Form):
|
||||
params = ['members', 'group']
|
||||
|
||||
fields = [GroupFields.gidnumber, GroupFields.description,
|
||||
GroupFields.cn_hidden, GroupFields.editprotected_hidden,
|
||||
GroupFields.group_orig, GroupFields.member_data,
|
||||
GroupFields.dn_to_info_json]
|
||||
hidden_fields = [
|
||||
GroupFields.cn_hidden, GroupFields.editprotected_hidden,
|
||||
GroupFields.group_orig, GroupFields.member_data,
|
||||
GroupFields.dn_to_info_json
|
||||
]
|
||||
|
||||
validator = GroupEditValidator()
|
||||
|
||||
|
||||
@@ -33,11 +33,10 @@ class GroupController(IPAController):
|
||||
# Group #
|
||||
#########
|
||||
|
||||
@expose("ipagui.templates.groupindex")
|
||||
@expose()
|
||||
@identity.require(identity.not_anonymous())
|
||||
def index(self, tg_errors=None):
|
||||
client.set_krbccache(os.environ["KRB5CCNAME"])
|
||||
return dict()
|
||||
raise turbogears.redirect("/group/list")
|
||||
|
||||
@expose("ipagui.templates.groupnew")
|
||||
@identity.require(identity.not_anonymous())
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
|
||||
py:extends="'grouplayout.kid'">
|
||||
<head>
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
|
||||
<title>Group Listing</title>
|
||||
</head>
|
||||
<body>
|
||||
Groups go here.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user