Re: [Zope] Product question
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 )
Re: [Zope] Product question
Not to sound like a completely blithering idiot, but how does one go about setting the permissions to allow it to be created. I'd assume in the __ac_permissions class attribute. What the specific permission is escapes me. DR Andy McKay wrote: > Make sure you have the permissions set correctly for that product, so that > you are allowed to create it. > > -- > Andy McKay, Developer, ActiveState > http://www.ActiveState.com > Programming for the People > > - Original Message - > From: "Daniel Rusch" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, August 15, 2000 9:11 AM > Subject: [Zope] Product question > > > 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? > > > > Dan > > > > > > ___ > > 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 ) > > > > ___ > 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 ) ___ 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 )
Re: [Zope] Product question
Make sure you have the permissions set correctly for that product, so that you are allowed to create it. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Daniel Rusch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 15, 2000 9:11 AM Subject: [Zope] Product question > 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? > > Dan > > > ___ > 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 ) > ___ 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 )