[Zope] initialize()

Kevin Howe khowe@performance-net.com
Sun, 3 Sep 2000 20:54:55 -0300


This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C015E9.36A7BE20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I've noticed that some ZOPE Python Products define an initialize() =
routine in their __init__.py file and some don't. From what I can tell =
it is not really needed, but simply offers a more organized way of =
registering the Product.

Is it good practice to define initialize(), and if so, why + what does =
it do?

kh




------=_NextPart_000_000A_01C015E9.36A7BE20
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.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>I've noticed that some ZOPE&nbsp;Python Products =
define an=20
initialize() routine in their __init__.py file and some don't. From what =
I can=20
tell it is not really needed, but simply&nbsp;offers&nbsp;a more =
organized way=20
of registering the Product.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Is it good practice to define initialize(), and if =
so, why +=20
what does it do?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>kh</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_000A_01C015E9.36A7BE20--