mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-18 12:12:58 -06:00
e1ca8c235c
More work is needed as the values are currently hardcoded and not saved
33 lines
839 B
Python
33 lines
839 B
Python
import os
|
|
from pickle import dumps, loads
|
|
from base64 import b64encode, b64decode
|
|
import copy
|
|
import logging
|
|
|
|
import cherrypy
|
|
import turbogears
|
|
from turbogears import controllers, expose, flash
|
|
from turbogears import validators, validate
|
|
from turbogears import widgets, paginate
|
|
from turbogears import error_handler
|
|
from turbogears import identity
|
|
|
|
from ipacontroller import IPAController
|
|
from ipa.entity import utf8_encode_values
|
|
from ipa import ipaerror
|
|
|
|
import ldap.dn
|
|
|
|
log = logging.getLogger(__name__)
|
|
|
|
class PolicyController(IPAController):
|
|
|
|
@expose("ipagui.templates.policyindex")
|
|
@identity.require(identity.not_anonymous())
|
|
def index(self, tg_errors=None):
|
|
"""Displays the one policy page"""
|
|
|
|
# TODO: return a dict of the items and URLs to display on
|
|
# Manage Policy
|
|
return dict()
|