diff roundup/htmltemplate.py @ 228:1d1848c99abe

Fixed some isFooTypes that I missed. Refactored some code in the CGI code.
author Richard Jones <richard@users.sourceforge.net>
date Wed, 15 Aug 2001 23:43:18 +0000
parents ad2c98faec97
children afd428ba6523
line wrap: on
line diff
--- a/roundup/htmltemplate.py	Mon Aug 13 23:04:12 2001 +0000
+++ b/roundup/htmltemplate.py	Wed Aug 15 23:43:18 2001 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: htmltemplate.py,v 1.19 2001-08-12 06:32:36 richard Exp $
+# $Id: htmltemplate.py,v 1.20 2001-08-15 23:43:18 richard Exp $
 
 import os, re, StringIO, urllib, cgi, errno
 
@@ -94,8 +94,9 @@
             # TODO: pull the value from the form
             if isinstance(propclass, hyperdb.Multilink): value = []
             else: value = ''
-        if isinstance((propclass.isStringType or propclass, hyperdb.Date) or
-                propclass.isIntervalType):
+        if (isinstance(propclass, hyperdb.String) or
+                isinstance(propclass, hyperdb.Date) or
+                isinstance(propclass, hyperdb.Interval)):
             size = size or 30
             if value is None:
                 value = ''
@@ -297,7 +298,8 @@
             value = self.filterspec.get(property, [])
         else:
             value = []
-        if isinstance(propclass.isLinkType or propclass, hyperdb.Multilink):
+        if (isinstance(propclass, hyperdb.Link) or
+                isinstance(propclass, hyperdb.Multilink)):
             linkcl = self.db.classes[propclass.classname]
             l = []
             k = linkcl.labelprop()
@@ -740,6 +742,9 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.19  2001/08/12 06:32:36  richard
+# using isinstance(blah, Foo) now instead of isFooType
+#
 # Revision 1.18  2001/08/07 00:24:42  richard
 # stupid typo
 #

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