summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-gui/ipagui/templates/not_found.kid
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-05-28 13:59:19 -0400
committerRob Crittenden <rcritten@redhat.com>2008-06-03 22:39:52 -0400
commit249f7ebf2c68a44bb733e58539403c7dc7467e5a (patch)
tree97a806efe55ef692ff9064d0f2a87ac075604f7d /ipa-server/ipa-gui/ipagui/templates/not_found.kid
parentc90f454dc3f7a5f32c06774516e8099b8b664c63 (diff)
downloadfreeipa-249f7ebf2c68a44bb733e58539403c7dc7467e5a.tar.gz
freeipa-249f7ebf2c68a44bb733e58539403c7dc7467e5a.tar.xz
freeipa-249f7ebf2c68a44bb733e58539403c7dc7467e5a.zip
Fix issue of double logging in ipa_error.log.
We open the log in ipa_webgui and this was being inherited by TurboGears which uses the same log so everything was getting logged twice. Shut down the log in ipa_webgui at the last possible moment. This will not catch configuration errors. Add a Not Found template. Only print a traceback on 500 errors.
Diffstat (limited to 'ipa-server/ipa-gui/ipagui/templates/not_found.kid')
-rw-r--r--ipa-server/ipa-gui/ipagui/templates/not_found.kid37
1 files changed, 37 insertions, 0 deletions
diff --git a/ipa-server/ipa-gui/ipagui/templates/not_found.kid b/ipa-server/ipa-gui/ipagui/templates/not_found.kid
new file mode 100644
index 00000000..0bc4c05c
--- /dev/null
+++ b/ipa-server/ipa-gui/ipagui/templates/not_found.kid
@@ -0,0 +1,37 @@
+<!--
+ Copyright (C) 2007-2008 Red Hat
+ see file 'COPYING' for use and warranty information
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; version 2 only
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+-->
+<!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="'master.kid'">
+<head>
+<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
+<title>Page Not Found</title>
+</head>
+
+<body>
+ <div id="main_content">
+ <h1>Page Not Found</h1>
+ <div py:if='message'>
+ ${message}
+ </div>
+
+ </div>
+
+</body>
+</html>