incubator-allura-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brondsema" <brond...@users.sf.net>
Subject [allura:tickets] #7239 Update feedparser
Date Wed, 05 Mar 2014 19:05:30 GMT
- **status**: in-progress --> code-review



---

** [tickets:#7239] Update feedparser**

**Status:** code-review
**Milestone:** forge-mar-7
**Created:** Wed Mar 05, 2014 06:49 PM UTC by Dave Brondsema
**Last Updated:** Wed Mar 05, 2014 06:49 PM UTC
**Owner:** Dave Brondsema

Our feedparser version is quite old, and a few bits of code need to be updated for it.  E.g.

~~~~
ERROR: test_html_sanitizer_youtube_iframe (allura.tests.test_utils.TestHTMLSanitizer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/dbrondsema/dbrondsema-1014/forge/Allura/allura/tests/test_utils.py", line 250,
in test_html_sanitizer_youtube_iframe
    '<div><iframe src="https://www.youtube.com/embed/kOLpSPEA72U?feature=oembed"></iframe></div>')
  File "/var/local/env-allura/lib/python2.7/site-packages/feedparser.py", line 1925, in feed
    sgmllib.SGMLParser.feed(self, data)
  File "/usr/lib64/python2.7/sgmllib.py", line 104, in feed
    self.goahead(0)
  File "/usr/lib64/python2.7/sgmllib.py", line 138, in goahead
    k = self.parse_starttag(i)
  File "/var/local/env-allura/lib/python2.7/site-packages/feedparser.py", line 1906, in parse_starttag
    j = self.__parse_starttag(i)
  File "/usr/lib64/python2.7/sgmllib.py", line 296, in parse_starttag
    self.finish_starttag(tag, attrs)
  File "/usr/lib64/python2.7/sgmllib.py", line 338, in finish_starttag
    self.unknown_starttag(tag, attrs)
  File "/home/dbrondsema/dbrondsema-1014/forge/Allura/allura/lib/utils.py", line 548, in unknown_starttag
    self.acceptable_elements.append('iframe')
AttributeError: 'set' object has no attribute 'append'
~~~~


---

Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options.
 Or, if this is a mailing list, you can unsubscribe from the mailing list.
Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message