[Zope] SQLSESSION problem
Graham Chiu
anon_emouse@hotmail.com
Sun, 19 Mar 2000 08:58:12 +1300
I've just started to try this out ...
I set the variable thus...
<dtml-call "SESSION.set('muserid',LOGIN)">
but later on when I try and use this session variable ...
<INPUT maxLength="30" name="LOGIN" size="30" TYPE="TEXT"
value="
<dtml-if "SESSION.has_key('muserid')">
<dtml-var "SESSION['muserid']">
</dtml-if>" />
It dies with ...
Error Type: NameError
Error Value: upper
with the following traceback
File D:\zope2\lib\python\DocumentTemplate\DT_Util.py, line 335, in eval
(Object: SESSION['muserid'])
(Info: SESSION)
File <string>, line 0, in ?
File D:\zope2\lib\python\DocumentTemplate\DT_Util.py, line 161, in
careful_getitem
File d:\zope2\lib\python\Products\SQLSession\SQLSession.py, line 99,
in __getitem__
File d:\zope2\lib\python\Products\SQLSession\SQLSession.py, line 389,
in sqlattr
(Object: NoBrains)
NameError: (see above)
-------
Regards, Graham Chiu
gchiu<at>compkarori.co.nz
http://www.compkarori.com/dynamo - The Homebuilt Dynamo
http://www.compkarori.com/dbase - The dBase bulletin