[Zope] VisualCMS - error in adding site

Dieter Maurer dieter at handshake.de
Mon Sep 15 17:55:57 EDT 2003


Jaroslav Lukesh wrote at 2003-9-15 10:22 +0200:
 > ...
 > Sorry for the lack of formatting.
 > 
 > def whichBrowser(self, ident):
 >    if ( (string.find(ident, 'MSIE') == -1)   and (string.find(ident,
 > 'Mozilla') >= 0 ) ):
 >       if ( (string.find(ident, 'Gecko') > -1 )) :
 >           ident = 'nn6'
 >       else:
 >           ident = 'nn4'
 >    elif (string.find(ident, 'MSIE') >= 0):
 >       ident = 'ms'
 >       thestr=int(HUSER[ind+4] + HUSER[ind+5])

This line is obviously broken.

It references two undefined variables "HUSER" and "ind".


Dieter



More information about the Zope mailing list