[Zope] shared instance error

michel@digicool.com michel@digicool.com
03 Jul 1999 12:28:44 -0400


Graham Chiu <anon_emouse@hotmail.com> writes:

> I have the following error occasionally occur
> 
>  <Shared.DC.ZRDB.RDB.DatabaseResults instance at b58540>
> 
> The above is the only error in the traceback.
> 
> Using NS 4.5, WinNT 4, and 1.11pr1 with Zserver.
> 

Are you sure this is an error?  Errors *allways* have tracebacks by
their nature, they are Python exceptions.  If this is all you are
getting, then somwhere in your DTML you are not correctly calling the
object above, and the DTML parser is just repr()ing the object.  For
example, if you iterated over a bunch of subfolders:

<!--#in "objectValues('Folder')"-->
  <!--#var sequence-item-->
<!--#/in-->

You would get:

<Folder instance at XXXXXX>
<Folder instance at XXXXXX>
<Folder instance at XXXXXX>
<Folder instance at XXXXXX>
.
.
.


This is because the DTML parser sees that you have just put
<!--#sequence-item--> (which is an object) in the output, and since it 
doesn't know what to do with this object, it simple repr()s it.
Somewhere in your code, a Shared.DC.ZRDB.RDB.DatabaseResults object is 
just be referenced, and probably not called.

-Michel

> 
> -------
> Regards,        Graham Chiu
> gchiu<at>compkarori.co.nz
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
> 
> (For developer-specific issues, use the companion list,
> zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )