[Zope] Problem calling SESSION object

Anthony Baxter Anthony Baxter <anthony@interlink.com.au>
Fri, 07 Jul 2000 14:47:21 +1000


Ugh. This is a stupid bug on my part. Upgrade to 0.2.9

Anthony

>>> wai@mahirnet.com wrote
> Hi All,
> 
> Need Help.
> 
> I'm currently using SQLSession v 0.2.3, with access database ( I had
> changed the "value" filed in session_data to item_value and also all sql
> statements that refer to it).
> 
> I had no problem generate the session id, but however, I had problem
> calling session object after I insert it into session_data.
> 
> I got an error when calling the <dtml-var "SESSION['xxx']">, i got this :
> 
> 
>              Zope Error
> 
>              Zope has encountered an error while publishing this resource.
> 
>              Error Type: NameError
>              Error Value: upper
> 
> <!--
> Traceback (innermost last):
>   File E:\MYBOOK~2\lib\python\ZPublisher\Publish.py, line 214, in
> publish_module
>   File E:\MYBOOK~2\lib\python\ZPublisher\Publish.py, line 179, in publish
>   File E:\MYBOOK~2\lib\python\Zope\__init__.py, line 202, in
> zpublisher_exception_hook
>     (Object: ElementWithAttributes)
>   File E:\MYBOOK~2\lib\python\ZPublisher\Publish.py, line 165, in publish
>   File E:\MYBOOK~2\lib\python\ZPublisher\mapply.py, line 160, in mapply
>     (Object: add_cart_html)
>   File E:\MYBOOK~2\lib\python\ZPublisher\Publish.py, line 102, in
> call_object
>     (Object: add_cart_html)
>   File E:\MYBOOK~2\lib\python\OFS\DTMLDocument.py, line 166, in __call__
>     (Object: add_cart_html)
>   File E:\MYBOOK~2\lib\python\DocumentTemplate\DT_String.py, line 502, in
> __call__
>     (Object: add_cart_html)
>   File E:\MYBOOK~2\lib\python\DocumentTemplate\DT_Util.py, line 335, in
> eval
>     (Object: SESSION['bk_isbn'])
>     (Info: SESSION)
>   File <string>, line 0, in ?
>   File E:\MYBOOK~2\lib\python\DocumentTemplate\DT_Util.py, line 161, in
> careful_getitem
>   File d:\mybookstore\lib\python\Products\SQLSession\SQLSession.py, line
> 99, in __getitem__
>   File d:\mybookstore\lib\python\Products\SQLSession\SQLSession.py, line
> 389, in sqlattr
>     (Object: NoBrains)
> NameError: (see above)
> 
> -->
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 

-- 
Anthony Baxter     <anthony@interlink.com.au>   
It's never too late to have a happy childhood.