From: "Daniel Rusch" <[EMAIL PROTECTED]>

> I've created a product, installed it and it appears on the Product
> Management at /Control_Panel / Products list.
>
> The question is how do I get it to appear in the drop down of Available
> Objects?
>

You have to register the class it defines. If you want the class to be
subclassable by ZClasses, you also have to registerBaseClass. Here's an
example copied from the __init__.py of my Xron product:

      context.registerClass(
        XronDTMLMethod.XronDTMLMethod,
        permission = 'Add Scheduled Method',
        constructors = (
          XronDTMLMethod.manage_addXronDTMLMethodForm,
          XronDTMLMethod.manage_addXronDTMLMethod),
        icon = 'www/Event.gif')
      context.registerBaseClass(XronDTMLMethod.XronDTMLMethod)
      context.registerHelp()

-- HTH
-- Loren


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to