Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Internet > HTTP (WWW)

    feincms-oembed 1.1.0

    Download button

    No screenshots available
    Downloads: 85  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    FEINHEIT GmbH | More programs
    BSD License / FREE
    June 25th, 2012, 13:55 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    feincms-oembed description

    OEmbed anything.

    feincms-oembed converts standard URLs from more than 200 content providers into embedded videos, images and rich article previews by letting Embedly or another oEmbed provider to the hard work.

    It's stunningly simple to use:

    1. Add 'feincms_oembed' to INSTALLED_APPS.

    2. Create the content type:

     from feincms.module.page.models import Page
     from feincms_oembed.contents import OembedContent


     TYPE_CHOICES=[
     ('default', _('Default presentation'), {'maxwidth': 500, 'maxheight': 300, 'wmode': 'opaque'}),
     ('transparent, _('Transparent'), {'maxwidth': 500, 'maxheight': 300, 'wmode': 'transparent'}),
     ])

     Page.create_content_type(OembedContent, TYPE_CHOICES=TYPE_CHOICES)


    If you want to customize the Embedly request or use another OEmbed provider, set settings.OEMBED_PROVIDER to a function receiving the URL and a dict with additional arguments and returning a suitable URL which returns OEmbed JSON on access. OEMBED_PROVIDER must either be a dotted python path or a callable:

    from feincms_oembed.providers import embedly_oembed_provider
    def my_provider(url, kwargs):
     kwargs['wmode'] = 'opaque'
     return embedly_oembed_provider(url, kwargs)

    OEMBED_PROVIDER = 'path.to.module.my_provider'
    # OEMBED_PROVIDER = my_provider # The function can be used too, not only the
     # dotted python path.


    Using the FeedContent

    If you want to use the FeedContent, make sure you have feedparser in your Python Path: https://code.google.com/p/feedparser/


    Product's homepage

    Requirements:

    · Python
    · FeinCMS

      


    TAGS:

    FeinCMS OEmbed | URL converter | Python | FeinCMS | OEmbed

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM