web/views/isioc.py
changeset 5895 6a3f776292a5
parent 5569 cb14af012a96
child 6582 8eb7883b4223
equal deleted inserted replaced
5894:7510cc3bbdbb 5895:6a3f776292a5
    30 
    30 
    31 
    31 
    32 class ISIOCItemAdapter(EntityAdapter):
    32 class ISIOCItemAdapter(EntityAdapter):
    33     """interface for entities which may be represented as an ISIOC items"""
    33     """interface for entities which may be represented as an ISIOC items"""
    34     __regid__ = 'ISIOCItem'
    34     __regid__ = 'ISIOCItem'
    35     __select__ = implements(ISiocItem) # XXX for bw compat, should be abstract
    35     __select__ = implements(ISiocItem, warn=False) # XXX for bw compat, should be abstract
    36 
    36 
    37     @implements_adapter_compat('ISIOCItem')
    37     @implements_adapter_compat('ISIOCItem')
    38     def isioc_content(self):
    38     def isioc_content(self):
    39         """return item's content"""
    39         """return item's content"""
    40         raise NotImplementedError
    40         raise NotImplementedError
    61 
    61 
    62 
    62 
    63 class ISIOCContainerAdapter(EntityAdapter):
    63 class ISIOCContainerAdapter(EntityAdapter):
    64     """interface for entities which may be represented as an ISIOC container"""
    64     """interface for entities which may be represented as an ISIOC container"""
    65     __regid__ = 'ISIOCContainer'
    65     __regid__ = 'ISIOCContainer'
    66     __select__ = implements(ISiocContainer) # XXX for bw compat, should be abstract
    66     __select__ = implements(ISiocContainer, warn=False) # XXX for bw compat, should be abstract
    67 
    67 
    68     @implements_adapter_compat('ISIOCContainer')
    68     @implements_adapter_compat('ISIOCContainer')
    69     def isioc_type(self):
    69     def isioc_type(self):
    70         """return container type (forum, Weblog, MailingList)"""
    70         """return container type (forum, Weblog, MailingList)"""
    71         raise NotImplementedError
    71         raise NotImplementedError