
import grokcore.component as grok
import zeit.cms.browser.preview
import zeit.magazin.interfaces


@grok.adapter(zeit.magazin.interfaces.IZMOContent, basestring)
@grok.implementer(zeit.cms.browser.interfaces.IPreviewURL)
def preview_url(content, preview_type):
    return zeit.cms.browser.preview.prefixed_url(
        'zmo-%s-prefix' % preview_type, content.uniqueId)


# XXX there also is a (basestring, basestring) variant of the adapter
# which is used by zeit.find to caluclate preview-urls for search results
# without looking up the content object first. What do we do about that?


import grokcore.component as grok
import zeit.cms.browser.preview
import zeit.magazin.interfaces


@grok.adapter(zeit.magazin.interfaces.IZMOContent, basestring)
@grok.implementer(zeit.cms.browser.interfaces.IPreviewURL)
def preview_url(content, preview_type):
    return zeit.cms.browser.preview.prefixed_url(
        'zmo-%s-prefix' % preview_type, content.uniqueId)

Remove oddity marker, it's been resolved in zeit.find now
Remove oddity marker, it's been resolved in zeit.find now

  
  import grokcore.component as grok
  import zeit.cms.browser.preview
  import zeit.magazin.interfaces
  
  
  @grok.adapter(zeit.magazin.interfaces.IZMOContent, basestring)
  @grok.implementer(zeit.cms.browser.interfaces.IPreviewURL)
  def preview_url(content, preview_type):
      return zeit.cms.browser.preview.prefixed_url(
          'zmo-%s-prefix' % preview_type, content.uniqueId)
  
- 
- # XXX there also is a (basestring, basestring) variant of the adapter
- # which is used by zeit.find to caluclate preview-urls for search results
- # without looking up the content object first. What do we do about that?
- 
Remove oddity marker, it's been resolved in zeit.find now
## Code Before:

import grokcore.component as grok
import zeit.cms.browser.preview
import zeit.magazin.interfaces


@grok.adapter(zeit.magazin.interfaces.IZMOContent, basestring)
@grok.implementer(zeit.cms.browser.interfaces.IPreviewURL)
def preview_url(content, preview_type):
    return zeit.cms.browser.preview.prefixed_url(
        'zmo-%s-prefix' % preview_type, content.uniqueId)


# XXX there also is a (basestring, basestring) variant of the adapter
# which is used by zeit.find to caluclate preview-urls for search results
# without looking up the content object first. What do we do about that?

## Instruction:
Remove oddity marker, it's been resolved in zeit.find now
## Code After:

import grokcore.component as grok
import zeit.cms.browser.preview
import zeit.magazin.interfaces


@grok.adapter(zeit.magazin.interfaces.IZMOContent, basestring)
@grok.implementer(zeit.cms.browser.interfaces.IPreviewURL)
def preview_url(content, preview_type):
    return zeit.cms.browser.preview.prefixed_url(
        'zmo-%s-prefix' % preview_type, content.uniqueId)
