[Product-Developers] Differences between addProduct() and addProfile() for Products.PloneTestCase

Noe Misael Nieto Arroyo noe at iservices.com.mx
Thu Mar 24 17:12:41 UTC 2011


Thank you very much. That was very clear.

---
noe

2011/3/24 Ross Patterson <me at rpatterson.net>

> Noe Misael Nieto Arroyo <noe at iservices.com.mx>
> writes:
>
> > I'm trying to write some tests. Looking under the hood I found that
> PloneTestCase
> > class defines two class methods: addProfile() and addProduct(). The
> former
> > "Imports an extension profile into the site." whereas the latter
> "Quickinstalls a
> > product into the site."
> >
> > What's the difference between both method?
>
> The same difference between using portal_setup to import a profile
> versus using portal_quickinstaller to install and add-on.  These days,
> for most add-ons, the only thing portal_quickinstaller actually does is
> use portal_setup to import a profile, but if your tests require the
> installation of an add-on that uses an old-style
> .Extensions.Install.install script function, then you'd need to use
> addProduct.
>
> In short, use addProfile unless you know for sure you need to use
> addProduct.
>
> Ross
>
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> https://lists.plone.org/mailman/listinfo/product-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20110324/55bfd9a6/attachment-0002.html>


More information about the Product-Developers mailing list