Re: Help debugging a script that is using ZODB.

[email protected] Tue, 12 May 2020 16:55:08 -0700 (PDT)
Newsgroups gmane.comp.web.zope.zodb
Message-ID <[email protected]>
------=_Part_2640_783455428.1589327708672
Content-Type: multipart/alternative; 
	boundary="----=_Part_2641_607649039.1589327708672"

------=_Part_2641_607649039.1589327708672
Content-Type: text/plain; charset="UTF-8"

Thanks for all the help.

On Saturday, May 9, 2020 at 1:44:26 PM UTC-4, Patrick Hampton wrote:
>
> I am trying to debug a script that is using ZODB. It is hard to tell if 
> some of the methods are functioning correctly because the information the 
> debugger displays does not tell me worthwhile information. Information such 
> as "<__main__.Coord object at 0x00000000147FA908 oid 0x1185 in <Connection 
> at 03c395c0>>" is displayed in the debugger, but it doesn't tell me 
> information that is useful while debugging. I would like to know the safe 
> way of changing what is displayed for a persistent object. I already tried 
> adding a "__str__" method, but that did not change the display. I am using 
> python 3.7 with ZODB 5.5.1.
>

-- 
You received this message because you are subscribed to the Google Groups "zodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/zodb/6dd666f9-1619-4c16-bc9b-0d6d16524cac%40googlegroups.com.

------=_Part_2641_607649039.1589327708672
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Thanks for all the help.<br><br>On Saturday, May 9, 2020 a=
t 1:44:26 PM UTC-4, Patrick Hampton wrote:<blockquote class=3D"gmail_quote"=
 style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-=
left: 1ex;"><div dir=3D"ltr">I am trying to debug a script that is using ZO=
DB. It is hard to tell if some of the methods are functioning correctly bec=
ause the information the debugger displays does not tell me worthwhile info=
rmation. Information such as &quot;&lt;__main__.Coord object at 0x000000001=
47FA908 oid 0x1185 in &lt;Connection at 03c395c0&gt;&gt;&quot; is displayed=
 in the debugger, but it doesn&#39;t tell me information that is useful whi=
le debugging. I would like to know the safe way of changing what is display=
ed for a persistent object. I already tried adding a &quot;__str__&quot; me=
thod, but that did not change the display. I am using python 3.7 with ZODB =
5.5.1.</div></blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;zodb&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">zodb+unsubscri=
[email protected]</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/zodb/6dd666f9-1619-4c16-bc9b-0d6d16524cac%40googlegroups.com?utm=
_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/zodb=
/6dd666f9-1619-4c16-bc9b-0d6d16524cac%40googlegroups.com</a>.<br />

------=_Part_2641_607649039.1589327708672--

------=_Part_2640_783455428.1589327708672--