old_contents: """Mercator proposal."""
  from adhocracy_core.interfaces import IItemVersion
  from adhocracy_core.interfaces import IItem
  from adhocracy_core.interfaces import ITag
  from adhocracy_core.resources import add_resource_type_to_registry
  from adhocracy_core.resources.itemversion import itemversion_metadata
  from adhocracy_core.resources.item import item_metadata
  from adhocracy_core.resources.rate import IRate
  from adhocracy_core.resources.comment import add_commentsservice
  from adhocracy_core.resources.rate import add_ratesservice
  from adhocracy_core.sheets.rate import IRateable
  from adhocracy_core.sheets.comment import ICommentable
  import adhocracy_core.sheets.mercator
  
  
  class IMercatorProposalVersion(IItemVersion):
  
      """A Mercator proposal."""
  
  
  mercator_proposal_version_meta = itemversion_metadata._replace(
      content_name='MercatorProposalVersion',
      iresource=IMercatorProposalVersion,
      extended_sheets=[adhocracy_core.sheets.mercator.IUserInfo,
                       adhocracy_core.sheets.mercator.IOrganizationInfo,
                       adhocracy_core.sheets.mercator.IIntroduction,
                       adhocracy_core.sheets.mercator.IDetails,
                       adhocracy_core.sheets.mercator.IMotivation,
                       adhocracy_core.sheets.mercator.IFinance,
                       adhocracy_core.sheets.mercator.IExtras,
                       ICommentable,
                       IRateable],
  )
  
  
  class IMercatorProposal(IItem):
  
      """Mercator proposal versions pool."""
  
  
  mercator_proposal_meta = item_metadata._replace(
      content_name='MercatorProposal',
      iresource=IMercatorProposal,
      element_types=[IMercatorProposalVersion,
                     ITag,
                     IRate],
      after_creation=item_metadata.after_creation + [
          add_commentsservice,
          add_ratesservice,
      ],
      item_type=IMercatorProposalVersion,
  )
  
  
  def includeme(config):
      """Add resource type to registry."""
      add_resource_type_to_registry(mercator_proposal_meta, config)
      add_resource_type_to_registry(mercator_proposal_version_meta, config)
  
new_contents: """Mercator proposal."""
  from adhocracy_core.interfaces import IItemVersion
  from adhocracy_core.interfaces import IItem
  from adhocracy_core.resources import add_resource_type_to_registry
  from adhocracy_core.resources.itemversion import itemversion_metadata
  from adhocracy_core.resources.item import item_metadata
  from adhocracy_core.resources.comment import add_commentsservice
  from adhocracy_core.resources.rate import add_ratesservice
  from adhocracy_core.sheets.rate import IRateable
  from adhocracy_core.sheets.comment import ICommentable
  import adhocracy_core.sheets.mercator
  
  
  class IMercatorProposalVersion(IItemVersion):
  
      """A Mercator proposal."""
  
  
  mercator_proposal_version_meta = itemversion_metadata._replace(
      content_name='MercatorProposalVersion',
      iresource=IMercatorProposalVersion,
      extended_sheets=[adhocracy_core.sheets.mercator.IUserInfo,
                       adhocracy_core.sheets.mercator.IOrganizationInfo,
                       adhocracy_core.sheets.mercator.IIntroduction,
                       adhocracy_core.sheets.mercator.IDetails,
                       adhocracy_core.sheets.mercator.IMotivation,
                       adhocracy_core.sheets.mercator.IFinance,
                       adhocracy_core.sheets.mercator.IExtras,
                       ICommentable,
                       IRateable],
  )
  
  
  class IMercatorProposal(IItem):
  
      """Mercator proposal versions pool."""
  
  
  mercator_proposal_meta = item_metadata._replace(
      content_name='MercatorProposal',
      iresource=IMercatorProposal,
      element_types=[IMercatorProposalVersion,
                     ],
      after_creation=item_metadata.after_creation + [
          add_commentsservice,
          add_ratesservice,
      ],
      item_type=IMercatorProposalVersion,
  )
  
  
  def includeme(config):
      """Add resource type to registry."""
      add_resource_type_to_registry(mercator_proposal_meta, config)
      add_resource_type_to_registry(mercator_proposal_version_meta, config)
  
subject: remove IRate/Tag from the mercator Element types, this is not needed