[Zope] help with magic method "__of__"

Karl & Mel llwo@dbtech.net
Sat, 10 Apr 1999 12:12:47 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_007E_01BE834B.72766460
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

OK so i'm a little slow.

I know that Confera is not supported, but I am using it as a base for an =
extended version that would allow messages to be moved, reordered, =
copied, paseted, etc.  In otherwords turn Messages into folderish? =
containerish? objects.  I don't want to give up the indexing and =
searching though.  Which leads me to believe that I need to override the =
'setItem' and '__getitem__' maybe?

Anyway

As I've been reading the code over and over and over (two weeks now) and =
have thrown out three attempts.  I keep seeing things like

self.data[id].__of__(self)
msg=3Dmsg.__of__(self)
r=3Dmap(lambda x, p=3Dself: x.__of__(p), r)

How does the magic method '__of__()'  work?

Also how does intSet{} work?

ta for any info.

Karl Putland

------=_NextPart_000_007E_01BE834B.72766460
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2014.210" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>OK so i'm a little slow.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>I know that Confera is not supported, but I am using =
it as a=20
base for an extended version that would allow messages to be moved, =
reordered,=20
copied, paseted, etc.&nbsp; In otherwords turn Messages into folderish?=20
containerish? objects.&nbsp; I don't want to give up the indexing and =
searching=20
though.&nbsp; Which leads me to believe that I need to override the =
'setItem'=20
and '__getitem__' maybe?</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Anyway</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>As I've been reading the code over and over and over =
(two=20
weeks now) and have thrown out three attempts.&nbsp; I keep seeing =
things=20
like</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>self.data[id].__of__(self)</FONT></DIV>
<DIV><FONT size=3D2>msg=3Dmsg.__of__(self)</FONT></DIV>
<DIV><FONT size=3D2>r=3Dmap(lambda x, p=3Dself: x.__of__(p), =
r)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>How does the magic method '__of__()'&nbsp; =
work?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Also how does intSet{} work?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>ta for any info.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Karl Putland</FONT></DIV></BODY></HTML>

------=_NextPart_000_007E_01BE834B.72766460--