from zope.interface import implements
from plone.app.controlpanel.interfaces import IConfigurationChangedEvent
from plone.app.controlpanel.events import ConfigurationChangedEvent
from utils import update_opengraphable_objects
from collective.opengraph.interfaces import IOpengraphable


class IOpengraphSettingsEvent(IConfigurationChangedEvent):
    """An event signaling that geo settings are saved
    """


class OpengraphSettingsEvent(ConfigurationChangedEvent):
    implements(IOpengraphSettingsEvent)


def updateOpengraphableObjects(event):
    """update all opengraphable event on change settings
    """
    update_opengraphable_objects(event.context, event.data.get(
        'content_types', []))

f417d8d239961b6878c9be100415a20199fa6a3d
<mask token>


class IOpengraphSettingsEvent(IConfigurationChangedEvent):
    <mask token>


class OpengraphSettingsEvent(ConfigurationChangedEvent):
    implements(IOpengraphSettingsEvent)


<mask token>

<mask token>


class IOpengraphSettingsEvent(IConfigurationChangedEvent):
    """An event signaling that geo settings are saved
    """


class OpengraphSettingsEvent(ConfigurationChangedEvent):
    implements(IOpengraphSettingsEvent)


<mask token>

<mask token>


class IOpengraphSettingsEvent(IConfigurationChangedEvent):
    """An event signaling that geo settings are saved
    """


class OpengraphSettingsEvent(ConfigurationChangedEvent):
    implements(IOpengraphSettingsEvent)


def updateOpengraphableObjects(event):
    """update all opengraphable event on change settings
    """
    update_opengraphable_objects(event.context, event.data.get(
        'content_types', []))

from zope.interface import implements
from plone.app.controlpanel.interfaces import IConfigurationChangedEvent
from plone.app.controlpanel.events import ConfigurationChangedEvent
from utils import update_opengraphable_objects
from collective.opengraph.interfaces import IOpengraphable


class IOpengraphSettingsEvent(IConfigurationChangedEvent):
    """An event signaling that geo settings are saved
    """


class OpengraphSettingsEvent(ConfigurationChangedEvent):
    implements(IOpengraphSettingsEvent)


def updateOpengraphableObjects(event):
    """update all opengraphable event on change settings
    """
    update_opengraphable_objects(event.context, event.data.get(
        'content_types', []))
