Andreas Jung <[email protected]> writes:

> Ross Patterson wrote:
>
>> Your ZCML doesn't incldue five:registerPackage 
>
> Does not help after adding registerPackage:
>
> http://svn.plone.org/svn/collective/Products.EasyNewsletter/trunk/Products/EasyNewsletter/configure.zcml
>
>>nor does your test setup
>> call installProduct.
>
> installProduct() is of course called in the setup of the layer
> (see base.py).

My bad, missed the installProduct.

> and all EasyNewsletter type are registered correctly with portal_types:
>
> -> self.portal.invokeFactory('EasyNewsletter', id='newsletter')
>
> (Pdb) self.portal.portal_types.objectIds()
> ['ATBooleanCriterion', 'ATCurrentAuthorCriterion', 'ATDateCriteria',
> 'ATDateRangeCriterion', 'ATListCriterion', 'ATPathCriterion',
> 'ATRelativePathCriterion', 'ATPortalTypeCriterion',
> 'ATReferenceCriterion', 'ATSelectionCriterion', 'ATSimpleIntCriterion',
> 'ATSimpleStringCriterion', 'ATSortCriterion', 'Discussion Item',
> 'Document', 'Event', 'File', 'Folder', 'Image', 'Link', 'News Item',
> 'Plone Site', 'TempFolder', 'Topic', 'EasyNewsletter', 'ENLIssue',
> 'ENLSubscriber', 'ENLTemplate']
>
> (Pdb) 'EasyNewsletter' in self.portal.portal_types.objectIds()
> True

Your problem is very explicitly in the initialize stuff, not in
portal_types.

Ross

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to