cubicweb/web/views/isioc.py
changeset 12553 2b41220b6e4c
parent 12552 c67d4f0d0203
child 12554 c00134302338
equal deleted inserted replaced
12552:c67d4f0d0203 12553:2b41220b6e4c
     1 # copyright 2003-2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
       
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
       
     3 #
       
     4 # This file is part of CubicWeb.
       
     5 #
       
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
       
     7 # terms of the GNU Lesser General Public License as published by the Free
       
     8 # Software Foundation, either version 2.1 of the License, or (at your option)
       
     9 # any later version.
       
    10 #
       
    11 # CubicWeb is distributed in the hope that it will be useful, but WITHOUT
       
    12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
       
    13 # FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
       
    14 # details.
       
    15 #
       
    16 # You should have received a copy of the GNU Lesser General Public License along
       
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
       
    18 """Specific views for SIOC (Semantically-Interlinked Online Communities)
       
    19 
       
    20 http://sioc-project.org
       
    21 """
       
    22 
       
    23 from logilab.common.deprecation import class_moved
       
    24 
       
    25 try:
       
    26     from cubes.sioc.views import *
       
    27 
       
    28     ISIOCItemAdapter = class_moved(ISIOCItemAdapter, message='[3.17] ISIOCItemAdapter moved to cubes.isioc.views')
       
    29     ISIOCContainerAdapter = class_moved(ISIOCContainerAdapter, message='[3.17] ISIOCContainerAdapter moved to cubes.isioc.views')
       
    30     SIOCView = class_moved(SIOCView, message='[3.17] SIOCView moved to cubes.is.view')
       
    31     SIOCContainerView = class_moved(SIOCContainerView, message='[3.17] SIOCContainerView moved to cubes.is.view')
       
    32     SIOCItemView = class_moved(SIOCItemView, message='[3.17] SIOCItemView moved to cubes.is.view')
       
    33 except ImportError:
       
    34     from cubicweb.web import LOGGER
       
    35     LOGGER.warning('[3.17] isioc extracted to cube sioc that was not found. try installing it.')