r252515 - in collective.simplesocial/trunk/collective/simplesocial: . browser likebutton
"Encolpe Degoute" <svn-changes-z4DKO/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.collective.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: encolpe Date: Sat Aug 24 07:43:21 2013 New Revision: 252515 Modified: collective.simplesocial/trunk/collective/simplesocial/browser/image.py collective.simplesocial/trunk/collective/simplesocial/likebutton/likebutton.py collective.simplesocial/trunk/collective/simplesocial/likebutton/opengraph.py collective.simplesocial/trunk/collective/simplesocial/upgrades.py Log: Compatibility for Plone 4.3 Modified: collective.simplesocial/trunk/collective/simplesocial/browser/image.py ============================================================================== --- collective.simplesocial/trunk/collective/simplesocial/browser/image.py (original) +++ collective.simplesocial/trunk/collective/simplesocial/browser/image.py Sat Aug 24 07:43:21 2013 @@ -1,5 +1,8 @@ from zope.interface import implements -from zope.app.component.hooks import getSite +try: + from zope.component.hooks import getSite +except ImportError: + zope.app.component.hooks from collective.simplesocial.browser.interfaces import IFacebookImage class DefaultFacebookImage(object): Modified: collective.simplesocial/trunk/collective/simplesocial/likebutton/likebutton.py ============================================================================== --- collective.simplesocial/trunk/collective/simplesocial/likebutton/likebutton.py (original) +++ collective.simplesocial/trunk/collective/simplesocial/likebutton/likebutton.py Sat Aug 24 07:43:21 2013 @@ -1,4 +1,8 @@ -from zope.app.component.hooks import getSite + +try: + from zope.component.hooks import getSite +except ImportError: + zope.app.component.hooks from zope.interface import alsoProvides, noLongerProvides from Products.Five.browser import BrowserView from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile Modified: collective.simplesocial/trunk/collective/simplesocial/likebutton/opengraph.py ============================================================================== --- collective.simplesocial/trunk/collective/simplesocial/likebutton/opengraph.py (original) +++ collective.simplesocial/trunk/collective/simplesocial/likebutton/opengraph.py Sat Aug 24 07:43:21 2013 @@ -1,4 +1,8 @@ -from zope.app.component.hooks import getSite + +try: + from zope.component.hooks import getSite +except ImportError: + zope.app.component.hooks from zope.component import queryMultiAdapter from zope.interface import implements from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile Modified: collective.simplesocial/trunk/collective/simplesocial/upgrades.py ============================================================================== --- collective.simplesocial/trunk/collective/simplesocial/upgrades.py (original) +++ collective.simplesocial/trunk/collective/simplesocial/upgrades.py Sat Aug 24 07:43:21 2013 @@ -1,4 +1,8 @@ -from zope.app.component.hooks import getSite + +try: + from zope.component.hooks import getSite +except ImportError: + zope.app.component.hooks from zope.component import getUtility from Products.CMFCore.utils import getToolByName from Products.statusmessages.interfaces import IStatusMessage ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk