old_contents: # vim:fileencoding=utf-8
  # Copyright (c) 2007-2011 gocept gmbh & co. kg
  # See also LICENSE.txt
  """Interface definitions for the link content type."""
  
  import zope.schema
  import zc.sourcefactory.basic
  
  import zeit.cms.content.interfaces
  from zeit.cms.i18n import MessageFactory as _
  
  
  class TargetSource(zc.sourcefactory.basic.BasicSourceFactory):
  
      values = {'_blank': _('New window')}
  
      def getValues(self):
          return ('_blank',)
  
      def getTitle(self, value):
          return self.values.get(value, value)
  
  
  class ILink(zope.interface.Interface):
      """A type for managing links to non-local content."""
  
      url = zope.schema.URI(title=_(u"Link address"))
  
      target = zope.schema.Choice(
          title=_('Target'),
          required=False,
          source=TargetSource())
  
new_contents: # vim:fileencoding=utf-8
  # Copyright (c) 2007-2011 gocept gmbh & co. kg
  # See also LICENSE.txt
  """Interface definitions for the link content type."""
  
  from zeit.cms.i18n import MessageFactory as _
  import zc.sourcefactory.basic
  import zeit.cms.content.interfaces
  import zope.schema
  
  
  class TargetSource(zc.sourcefactory.basic.BasicSourceFactory):
  
      values = {'_blank': _('New window')}
  
      def getValues(self):
          return ('_blank',)
  
      def getTitle(self, value):
          return self.values.get(value, value)
  
  
  class ILink(zope.interface.Interface):
      """A type for managing links to non-local content."""
  
      url = zope.schema.URI(title=_(u"Link address"))
  
      target = zope.schema.Choice(
          title=_('Target'),
          required=False,
          source=TargetSource())
  
subject: sort interfaces