Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 7e03e96dde1cbbdbc7cc96424cd9e059 > files > 374

python-feedparser-doc-5.1.3-3.fc18.noarch.rpm



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>feed.rights_detail &mdash; feedparser 5.1.3 documentation</title>
    
    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <link rel="stylesheet" href="_static/feedparser.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '',
        VERSION:     '5.1.3',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="top" title="feedparser 5.1.3 documentation" href="index.html" />
    <link rel="up" title="Reference" href="reference.html" />
    <link rel="next" title="feed.subtitle" href="reference-feed-subtitle.html" />
    <link rel="prev" title="feed.rights" href="reference-feed-rights.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="reference-feed-subtitle.html" title="feed.subtitle"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="reference-feed-rights.html" title="feed.rights"
             accesskey="P">previous</a> |</li>
        <li><a href="index.html">feedparser 5.1.3 documentation</a> &raquo;</li>
          <li><a href="reference.html" accesskey="U">Reference</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="feed-rights-detail">
<span id="reference-feed-rights-detail"></span><h1><tt class="xref py py-attr docutils literal"><span class="pre">feed.rights_detail</span></tt><a class="headerlink" href="#feed-rights-detail" title="Permalink to this headline">¶</a></h1>
<p>A dictionary with details on the feed copyright.</p>
<div class="section" id="feed-rights-detail-value">
<span id="reference-feed-rights-detail-value"></span><h2><tt class="xref py py-attr docutils literal"><span class="pre">feed.rights_detail.value</span></tt><a class="headerlink" href="#feed-rights-detail-value" title="Permalink to this headline">¶</a></h2>
<p>Same as <a class="reference internal" href="reference-feed-rights.html#reference-feed-rights"><em>feed.rights</em></a>.</p>
<p>If this contains <abbr title="HyperText Markup Language">HTML</abbr> or <abbr title="Extensible HyperText Markup Language">XHTML</abbr>, it is <a class="reference internal" href="html-sanitization.html#advanced-sanitization"><em>sanitized</em></a> by default.</p>
<p>If this contains <abbr title="HyperText Markup Language">HTML</abbr> or <abbr title="Extensible HyperText Markup Language">XHTML</abbr>, certain (X)HTML elements within this
value may contain relative <abbr>URI (Uniform Resource Identifier)`s.  If so,
they are :ref:`resolved according to a set of rules &lt;advanced.base&gt;</abbr>.</p>
</div>
<div class="section" id="feed-rights-detail-type">
<span id="reference-feed-rights-detail-type"></span><h2><tt class="xref py py-attr docutils literal"><span class="pre">feed.rights_detail.type</span></tt><a class="headerlink" href="#feed-rights-detail-type" title="Permalink to this headline">¶</a></h2>
<p>The content type of the feed copyright.</p>
<p>Most likely values for <tt class="xref py py-attr docutils literal"><span class="pre">type</span></tt>:</p>
<ul class="simple">
<li><em class="mimetype">text/plain</em></li>
<li><em class="mimetype">text/html</em></li>
<li><em class="mimetype">application/xhtml+xml</em></li>
</ul>
<p>For Atom feeds, the content type is taken from the type attribute, which
defaults to <em class="mimetype">text/plain</em> if not specified.  For <abbr title="Rich Site Summary">RSS</abbr> feeds, the content type is auto-determined by inspecting the content,
and defaults to <em class="mimetype">text/html</em>.  Note that this may cause silent data
loss if the value contains plain text with angle brackets.  There is nothing I
can do about this problem; it is a limitation of <abbr title="Rich Site Summary">RSS</abbr>.</p>
<p>Future enhancement: some versions of <abbr title="Rich Site Summary">RSS</abbr> clearly
specify that certain values default to <em class="mimetype">text/plain</em>, and
<strong class="program">Universal Feed Parser</strong> should respect this, but it doesn&#8217;t yet.</p>
</div>
<div class="section" id="feed-rights-detail-language">
<h2><tt class="xref py py-attr docutils literal"><span class="pre">feed.rights_detail.language</span></tt><a class="headerlink" href="#feed-rights-detail-language" title="Permalink to this headline">¶</a></h2>
<p>The language of the feed copyright.</p>
<p><tt class="xref py py-attr docutils literal"><span class="pre">language</span></tt> is supposed to be a language code, as
specified by <cite>:abbr:`RFC (Request For Comments)</cite> 3066
&lt;<a class="reference external" href="http://www.ietf.org/rfc/rfc3066.txt">http://www.ietf.org/rfc/rfc3066.txt</a>&gt;`_, but publishers have been known to
publish random values like &#8220;English&#8221; or &#8220;German&#8221;.  <strong class="program">Universal Feed
Parser</strong> does not do any parsing or normalization of language codes.</p>
<p><tt class="xref py py-attr docutils literal"><span class="pre">language</span></tt> may come from the element&#8217;s xml:lang
attribute, or it may inherit from a parent element&#8217;s xml:lang, or the
Content-Language <abbr title="Hypertext Transfer Protocol">HTTP</abbr> header.  If the
feed does not specify a language, <tt class="xref py py-attr docutils literal"><span class="pre">language</span></tt> will
be <tt class="docutils literal"><span class="pre">None</span></tt>, the <strong class="program">Python</strong> null value.</p>
</div>
<div class="section" id="feed-rights-detail-base">
<h2><tt class="xref py py-attr docutils literal"><span class="pre">feed.rights_detail.base</span></tt><a class="headerlink" href="#feed-rights-detail-base" title="Permalink to this headline">¶</a></h2>
<p>The original base <abbr title="Uniform Resource Identifier">URI</abbr> for links within
the feed copyright.</p>
<p><tt class="xref py py-attr docutils literal"><span class="pre">base</span></tt> is only useful in rare situations and can
usually be ignored.  It is the original base <abbr title="Uniform Resource Identifier">URI</abbr> for this value, as specified by the element&#8217;s xml:base attribute,
or a parent element&#8217;s xml:base, or the appropriate <abbr title="Hypertext Transfer Protocol">HTTP</abbr> header, or the <abbr title="Uniform Resource Identifier">URI</abbr> of
the feed.  (See <a class="reference internal" href="resolving-relative-links.html#advanced-base"><em>Relative Link Resolution</em></a> for more details.)  By the time you see
it, <strong class="program">Universal Feed Parser</strong> has already resolved relative links in all
values where it makes sense to do so.  <em>Clients should never need to manually
resolve relative links.</em></p>
<p class="rubric">Comes from</p>
<ul class="simple">
<li>/atom03:feed/atom03:copyright</li>
<li>/atom10:feed/atom10:rights</li>
<li>/rdf:RDF/rdf:channel/dc:rights</li>
<li>/rss/channel/copyright</li>
<li>/rss/channel/dc:rights</li>
</ul>
<div class="admonition-see-also admonition seealso">
<p class="first admonition-title">See also</p>
<ul class="last simple">
<li><a class="reference internal" href="reference-feed-rights.html#reference-feed-rights"><em>feed.rights</em></a></li>
</ul>
</div>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#"><tt class="docutils literal"><span class="pre">feed.rights_detail</span></tt></a><ul>
<li><a class="reference internal" href="#feed-rights-detail-value"><tt class="docutils literal"><span class="pre">feed.rights_detail.value</span></tt></a></li>
<li><a class="reference internal" href="#feed-rights-detail-type"><tt class="docutils literal"><span class="pre">feed.rights_detail.type</span></tt></a></li>
<li><a class="reference internal" href="#feed-rights-detail-language"><tt class="docutils literal"><span class="pre">feed.rights_detail.language</span></tt></a></li>
<li><a class="reference internal" href="#feed-rights-detail-base"><tt class="docutils literal"><span class="pre">feed.rights_detail.base</span></tt></a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="reference-feed-rights.html"
                        title="previous chapter"><tt class="docutils literal docutils literal docutils literal"><span class="pre">feed.rights</span></tt></a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="reference-feed-subtitle.html"
                        title="next chapter"><tt class="docutils literal"><span class="pre">feed.subtitle</span></tt></a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="_sources/reference-feed-rights_detail.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="reference-feed-subtitle.html" title="feed.subtitle"
             >next</a> |</li>
        <li class="right" >
          <a href="reference-feed-rights.html" title="feed.rights"
             >previous</a> |</li>
        <li><a href="index.html">feedparser 5.1.3 documentation</a> &raquo;</li>
          <li><a href="reference.html" >Reference</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2004-2008 Mark Pilgrim, 2010-2012 Kurt McKee.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
    </div>
  </body>
</html>