view roundup/cgi/ZTUtils/__init__.py @ 7999:310e19beba3e

fix: report filename if template file is invalid A file name like .#issue.search.html causes a crash because _find returns None not a tuple and unpacking fails. Trap the TypeError and raise ValueError with message that includes the basename of the file.
author John Rouillard <rouilj@ieee.org>
date Sun, 26 May 2024 11:14:10 -0400
parents d26921b851c3
children
line wrap: on
line source

##############################################################################
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
# 
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
# 
##############################################################################
__doc__='''Package of template utility classes and functions.

Modified for Roundup 0.5 release:

- removed Zope imports
'''
__docformat__ = 'restructuredtext'

from .Batch import Batch
from .Iterator import Iterator


Roundup Issue Tracker: http://roundup-tracker.org/