Syndication
===========
Syndicate faceted navigable results. To enable syndication you can check eea
buildout configuration (http://svn.eionet.europa.eu/repositories/Zope/trunk/eea-buildout).

Imports
-------

    >>> from zope.component import getMultiAdapter

Set up
------

    >>> portal = layer["portal"]
    >>> request = layer['request']
    >>> sandbox = portal['sandbox']
    >>> sandbox.setLanguage('en')

    >>> try:
    ...     from Products.CMFPlone.interfaces.syndication import IFeedSettings
    ...     IFeedSettings(sandbox).enabled = True
    ... except ImportError:
    ...     pass
    >>> from zope.component import getMultiAdapter
    >>> subtyper = getMultiAdapter((sandbox, request), name=u'faceted_subtyper')
    >>> subtyper.enable()

RSS2
----

    >>> rss = sandbox.unrestrictedTraverse('rss.xml', None)
    >>> if rss:
    ...     res = rss()
    ... else:
    ...     res = u'<?xml version="1.0"?>\n<rss version="2.0">\n</rss>\n'
    >>> res
    u'<?xml version="1.0"?>...<rss...version="2.0"...</rss>...'

SKOS
----

    >>> skos = sandbox.unrestrictedTraverse('@@skos_syndication', None)
    >>> if skos:
    ...     concepts = [c for c in skos.concepts()]
