I've had to create some patches against Webware 1.0.2 for Python 2.3 compatibility.
The comparison to StringType on Python 2.3 does not include Unicode strings. I'll inline the patches below: --- DocSupport/ClassList.py.orig Mon Jun 15 13:35:30 2009 +++ DocSupport/ClassList.py Mon Jun 15 13:36:10 2009 @@ -9,7 +9,7 @@ import os, re, sys from glob import glob -from types import StringType +from types import StringTypes def EmptyString(klass): @@ -155,7 +155,7 @@ klass.printList(file=file) def printForWeb(self, hierarchic=0, file=sys.stdout): - if type(file) is StringType: + if type(file) in StringTypes: file = open(file, 'w') close = 1 else: --- DocSupport/FileList.py.orig Mon Jun 15 13:35:43 2009 +++ DocSupport/FileList.py Mon Jun 15 13:38:40 2009 @@ -9,7 +9,7 @@ import os, sys from glob import glob -from types import StringType +from types import StringTypes class FileList: @@ -39,7 +39,7 @@ self._files.append(name) def printList(self, file=sys.stdout): - if type(file) is StringType: + if type(file) in StringTypes: file = open(file, 'w') close = 1 else: @@ -56,7 +56,7 @@ file.close() def printForWeb(self, file=sys.stdout): - if type(file) is StringType: + if type(file) in StringTypes: file = open(file, 'w') close = 1 else: I'd love for these to be included in Webware 1.0.3 Thanks, -Justin Akehurst Justin Akehurst Software Design Engineer - UI Isilon Systems, Inc www.isilon.com <http://www.isilon.com/> P +1-206-315-7500 F +1-206-315-7501 D +1-206-315-7576 <file:///C:\Documents%20and%20Settings\jakehurst\Application%20Data\Micr osoft\Signatures\isilon_logo.png> The Proven Leader in Scale-out NAS Simplicity and Value. Guaranteed <http://www.isilon.com/guarantee/>
------------------------------------------------------------------------------
_______________________________________________ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss