You are not logged in Log in Join
You are here: Home » Download Zope Products » Content Management Framework (ne "PTK") » ZWiki » WritingAPTKProduct

Log in
Name

Password

 
 

History for WritingAPTKProduct

??changed:
-
Introduction

 This document describes the steps required to create a Product which
 provides new kinds of PortalContent.  See also
 CreatingAPortalContentZClass for notes on doing this through the web.

Base Classes

 A portal-managed class must minimally inherit from PTKBase.PortalContent 
 and Acquisition.Implicit, or some subclass if Implicit.

Registration

 Before a portal-managed class can be used, it must be registered.
 PTKBase.register provides a function called 'register' which is to be
 used for this purpose.  It can be imported and used like this::

  from Products.!PTKBase.register import register
  register(aClass,
         meta_type="A Portal Object", # Optional, will be fetched from aClass
         constructors=(addClass,),
         action="Wizards/aClass",
         permission="Add aClass",
         icon="aclass.gif")

Notes

  Why isn't my 'this::' working?

  *The code to be displayed must start with whitespace, which I've added above. --kjz*