[Zope] SQLSession problems

Graham Chiu anon_emouse@hotmail.com
Thu, 11 May 2000 16:57:24 +1300


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


This sort of code worked fine for me

<dtml-call Session>
<dtml-in "zSqlMethod()">
  <dtml-call "REQUEST.set('currentsession',SESSION.getName())">
</dtml-in>

until last night after importing the ZDiscussions.zexp from 

http://www.zope.org/Members/BwanaZulia/ZUBB/

when it now dies with the following

Server Error

Error Type: AttributeError
Error Value: 'string' object has no attribute 'getName'

Traceback (innermost last):

<stuff deleted>

    (Object: REQUEST.set('currentsession',SESSION.getName()))
    (Info: REQUEST)
  File <string>, line 0, in ?
  File D:\zope2\lib\python\DocumentTemplate\DT_Util.py, line 127, in
careful_getattr
AttributeError: (see above)

I'm using 2.1.3, and the author of the ZDiscussions product above is
using 2.1.4

but this looks like the problem that arose with 2.1.6.

I reinstalled 2.1.3, and SQLSession but the problem remains.  If I have
the REQUEST.set outside the ZSQL loop, it works fine.

What might be going on??

- -- 
Regards,        Graham Chiu
gchiu<at>compkarori.co.nz
http://www.compkarori.com/dynamo - The Homebuilt Dynamo
http://www.compkarori.com/dbase - The dBase bulletin

-----BEGIN PGP SIGNATURE-----
Version: PGPsdk version 1.7.1

iQA/AwUBORmU9bTRdIWzaLpMEQLgtACfQXMcNxlBGgNQkIjuFUdrb26bLPcAn3cM
JK2sDNoYh/PeLHvk1JSqBDhT
=XSyx
-----END PGP SIGNATURE-----