diff roundup/htmltemplate.py @ 167:a49c8a2ddd26

Added time logging and file uploading to the templates.
author Richard Jones <richard@users.sourceforge.net>
date Mon, 30 Jul 2001 08:12:17 +0000
parents 717f12e6ccf2
children 3c19bc818711
line wrap: on
line diff
--- a/roundup/htmltemplate.py	Mon Jul 30 08:04:26 2001 +0000
+++ b/roundup/htmltemplate.py	Mon Jul 30 08:12:17 2001 +0000
@@ -1,4 +1,4 @@
-# $Id: htmltemplate.py,v 1.14 2001-07-30 06:17:45 richard Exp $
+# $Id: htmltemplate.py,v 1.15 2001-07-30 08:12:17 richard Exp $
 
 import os, re, StringIO, urllib, cgi, errno
 
@@ -710,7 +710,7 @@
         s = open(os.path.join(templates, classname+'.newitem')).read()
     except:
         s = open(os.path.join(templates, classname+'.item')).read()
-    w('<form action="new%s">'%classname)
+    w('<form action="new%s" method="POST" enctype="multipart/form-data">'%classname)
     for key in form.keys():
         if key[0] == ':':
             value = form[key].value
@@ -723,6 +723,15 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.14  2001/07/30 06:17:45  richard
+# Features:
+#  . Added ability for cgi newblah forms to indicate that the new node
+#    should be linked somewhere.
+# Fixed:
+#  . Fixed the agument handling for the roundup-admin find command.
+#  . Fixed handling of summary when no note supplied for newblah. Again.
+#  . Fixed detection of no form in htmltemplate Field display.
+#
 # Revision 1.13  2001/07/30 02:37:53  richard
 # Temporary measure until we have decent schema migration.
 #

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