File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1515# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717#
18- # $Id: htmltemplate.py,v 1.45 2001-11-22 15:46:42 jhermann Exp $
18+ # $Id: htmltemplate.py,v 1.46 2001-11-24 00:53:12 jhermann Exp $
1919
2020__doc__ = """
2121Template engine.
@@ -850,7 +850,7 @@ def render(self, form):
850850 c = self .classname
851851 try :
852852 s = open (os .path .join (self .templates , c + '.newitem' )).read ()
853- except :
853+ except IOError :
854854 s = open (os .path .join (self .templates , c + '.item' )).read ()
855855 w ('<form action="new%s" method="POST" enctype="multipart/form-data">' % c )
856856 for key in form .keys ():
@@ -865,6 +865,9 @@ def render(self, form):
865865
866866#
867867# $Log: not supported by cvs2svn $
868+ # Revision 1.45 2001/11/22 15:46:42 jhermann
869+ # Added module docstrings to all modules.
870+ #
868871# Revision 1.44 2001/11/21 23:35:45 jhermann
869872# Added globbing for win32, and sample marking in a 2nd file to test it
870873#
You can’t perform that action at this time.
0 commit comments