Derek Broughton wrote:
> Kees Hink wrote:
> 
>> We're currently using plone.contentratings from trunk in a Plone 4 site,
>> so i see no need for this branch which you created today.
> 
> To clean up Plone4 deprecations, perhaps?

I ended up doing this:

          self.sm = getSiteManager(context)
-        self.nsm = queryNextSiteManager(context)
+        gsm = getGlobalSiteManager()
+        self.nsm = None if self.sm is gsm else gsm

The tests pass and no deprecation warnings!

Suresh

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

Reply via email to