#! /usr/bin/env python
#-*- coding: utf-8 -*-
# pyAggr3g470r - A Web based news aggregator.
# Copyright (C) 2010 Cédric Bonhomme - http://cedricbonhomme.org/
#
# For more information : http://bitbucket.org/cedricbonhomme/pyaggr3g470r/
#
# 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, either version 3 of the License, or
# (at your option) any later version.
#
# 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, see
__author__ = "Cedric Bonhomme"
__version__ = "$Revision: 2.9 $"
__date__ = "$Date: 2010/01/29 $"
__revision__ = "$Date: 2011/08/26 $"
__copyright__ = "Copyright (c) Cedric Bonhomme"
__license__ = "GPLv3"
import os
import re
import time
import sqlite3
import cherrypy
import calendar
import threading
from collections import Counter
import datetime
import utils
import feedgetter
import PyQRNative
def error_page_404(status, message, traceback, version):
"""
Display an error if the page does not exist.
"""
html = htmlheader()
html += htmlnav
html += "
Error %s - This page does not exist." % status
html += "\n