[Zope] Creating a New Object Type - Use ZClass or Python?
Michel Pelletier
michel@digicool.com
Fri, 30 Jul 1999 12:16:49 -0400
> -----Original Message-----
> From: eric jones [mailto:ej@ee.duke.edu]
> Sent: Friday, July 30, 1999 5:30 AM
> To: zope@zope.org
> Subject: [Zope] Creating a New Object Type - Use ZClass or Python?
>
>
>
> Is this best done by creating a class in python or with the ZClass
> interface?
>
Both can do what your looking for. The choice is based on preference.
Zclasses are good for content managers who understandthe object
abstraction but want to 1) develop programaticly through the web and 2)
not use python. I personally would write your product in python, since
I use it so much it's just second nature to me, and the bits of arcana
associated with Zope products is second nature.
The arcana is minimal however, just look at a few example products and
you will see that there is a noticible pattern. Your class needs a
meta_type, icon, permission settings, management options, an index_html
public interface method, a manage_main managment interface method, and
an __init__ file in the products package that registers itself with
Zope.
-Michel
> thanks,
> eric
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
>
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )
>