Hi all,

I was writting unit tests for a theme product that moves two viewlets from 
the plone.portalheader viewlet manager to the plone.portalfooter viewlet 
manager and gives some special order to the viewlets in plone.portalfooter. 
Does anybody know of a product in the community that has tests for this kind 
of things?

So I wrote helper methods to test whether or not a viewlet is managed by a 
given viewlet manager; to get an orderded list of viewlets managed by a 
particular viewlet manager; and to check if a viewlet is hidden. Those can 
be seen at http://tinyurl.com/cvx7cw. Notice that the request object that 
I'm using in the queryMultiAdapter calls is self.portal.REQUEST.

The problem I ran into is that the helper methods ignore viewlets 
configurations made by the theme product unless I explicity make 
self.portal.REQUEST to provide the theme IThemeSpecific interface:

directlyProvides(self.portal.REQUEST, IThemeSpecific) 
(http://tinyurl.com/c8fe67)

Are there any request object fully aware of the products installed in the 
site that I could use instead? This is, a request object that already 
provides theme specific interfaces based on the products installed in 
self.portal.

Any suggestions on how to improve the way I'm testing this will be welcome.

TIA,
Emanuel




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

Reply via email to