[Zope] guarded_getitem and zsql method results

Shriek@gmx.co.uk Shriek@gmx.co.uk
Thu, 6 Sep 2001 06:34:40 +0200 (MEST)


> From: <Shriek@gmx.co.uk>
> > >   File C:\PROGRA~1\ZOPE-L~1\bin\lib\string.py, line 114, in split
> > >   File C:\PROGRA~1\ZOPE-L~1\lib\python\DateTime\DateTime.py, line
> 1106, in
> > > __getattr__
> > > AttributeError: split
> 
> You're trying to split a DateTime object, not a string, and the Python
> 2.1 implementation of string.split is confusing you -- it gives the
> wrong error message since it has been reimplemented as something like:
> 
> def split(s, *args):
>   return s.split(*args)
> 
> You need to convert the DateTime into a string, using one of its methods
> such as Date().

Well, that was humbling.  Thanks Evan (and Chris who also pointed me
in the right direction).  Must say that the error msgs are quite 
enigmatic at times.

Cheers,

Stephen.

-- 
Sent through GMX FreeMail - http://www.gmx.net